jdk-24/test/langtools/tools/javac/DefiniteAssignment/T4721062a.java
2017-09-12 19:03:39 +02:00

18 lines
334 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4721062
* @summary DA treatment of return statements in constructors
* @author Neal Gafter (gafter)
*
* @compile/fail/ref=T4721062a.out -XDrawDiagnostics T4721062a.java
*/
class T4721062a {
final int i;
T4721062a() {
if (true)
return;
i = 1;
}
}