blob: 0dc48f528943c9a657f37bd16cf541a1c3cc7241 [file]
// "Replace 'n' with pattern variable" "true"
class X {
void test(Object obj) {
while (!(obj instanceof Node n)) {
obj = getNext();
}
System.out.println(n);
}
native Object getNext();
interface Node {}
}