Files
2019-12-28 11:10:30 +00:00

13 lines
234 B
Java

// "Replace 'n' with pattern variable" "true"
class X {
void test(Object obj) {
while (obj instanceof Node) {
Node <caret>n = (Node) obj;
obj = n.getNext();
}
}
interface Node {
Object getNext();
}
}