jdk-24/test/langtools/tools/javac/LocalInterface.java
Vicente Romero 9efdaacc31 8242478: compiler implementation for records (Second Preview)
Reviewed-by: mcimadamore, jlahoda, darcy
2020-05-17 11:09:52 -04:00

14 lines
313 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8242478
* @summary test for local interfaces
* @compile/fail/ref=LocalInterface.out -XDrawDiagnostics LocalInterface.java
* @compile --enable-preview -source ${jdk.version} LocalInterface.java
*/
class LocalInterface {
void m() {
interface I {}
}
}