< prev index next >

test/langtools/tools/javac/switchexpr/DefiniteAssignment2.java

Print this page

        

*** 1,10 **** /** * @test /nodynamiccopyright/ * @bug 8214031 * @summary Verify that definite assignment when true works (illegal code) ! * @compile/fail/ref=DefiniteAssignment2.out --enable-preview --source 12 -XDrawDiagnostics DefiniteAssignment2.java */ public class DefiniteAssignment2 { public static void main(String[] args) { int a = 0; --- 1,10 ---- /** * @test /nodynamiccopyright/ * @bug 8214031 * @summary Verify that definite assignment when true works (illegal code) ! * @compile/fail/ref=DefiniteAssignment2.out --enable-preview --source 13 -XDrawDiagnostics DefiniteAssignment2.java */ public class DefiniteAssignment2 { public static void main(String[] args) { int a = 0;
< prev index next >