< prev index next >

test/langtools/tools/javac/patterns/LocalVariableTable.java

Print this page
rev 57740 : [mq]: 8237528

*** 144,154 **** */ @Expect({ "o", "s" }) static class Pattern_Simple { public static void test(Object o) { ! if (o instanceof String s) {} } } @Expect({ "s" }) static class Pattern_Lambda { --- 144,156 ---- */ @Expect({ "o", "s" }) static class Pattern_Simple { public static void test(Object o) { ! if (o instanceof String s) { ! s.length(); ! } } } @Expect({ "s" }) static class Pattern_Lambda {
< prev index next >