jdk-24/test/langtools/tools/javac/failover/FailOver15.java
2018-04-03 23:58:52 -04:00

20 lines
441 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6970584 7060926
* @summary Attr.PostAttrAnalyzer misses a case
*
* @compile/fail/ref=FailOver15.out -XDrawDiagnostics --should-stop=at=FLOW -XDdev FailOver15.java
*/
class Test {
void m() {
new UnknownClass<String, Void>() {
public String getString() {
String s = "";
s += "more";
return s;
}
}
}
}