jdk-24/langtools/test/tools/javac/failover/FailOver11.java
Maurizio Cimadamore 4da9c57770 6970584: Flow.java should be more error-friendly
Added a post-attribution visitor that fixup uninitialized types/symbol in AST after erroneous attribution

Reviewed-by: jjg
2010-09-07 17:33:43 +01:00

18 lines
338 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6970584
* @summary Flow.java should be more error-friendly
* @author mcimadamore
*
* @compile/fail/ref=FailOver11.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver11.java
*/
class Test extends Test {
boolean cond;
void m(Object o) {}
{ m(cond ? null : null); }
}