blob: 86599829267c116584719dd0854a4ee3f7ec3488 [file]
// "Replace 's' with pattern variable" "true"
class X {
void test(Object obj) {
if (!(obj instanceof String s)) {
System.out.println("not");
} else {
}
}
}