18 lines
334 B
Java
Raw Normal View History

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