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

17 lines
322 B
Java

/* @test /nodynamiccopyright/
* @bug 7192246
* @summary flow analysis is not run on inlined default bodies
* @compile/fail/ref=Neg06.out -XDrawDiagnostics Neg06.java
*/
class Neg06 {
interface A {
default String m() { C.m(); }
}
static class C {
static String m() { return ""; }
}
}