langtools/test/tools/javac/DefiniteAssignment/T4721062a.java
author sogoel
Fri, 29 Aug 2014 00:42:42 -0700
changeset 26274 02a5b23ee21c
parent 25308 190cac01c316
permissions -rw-r--r--
8055074: Group 9a: golden files for tests in tools/javac dir Reviewed-by: jjg

/*
 * @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;
    }
}