jdk-24/langtools/test/tools/javac/defaultMethods/Neg06.java

17 lines
309 B
Java
Raw Normal View History

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