jdk-24/test/langtools/tools/javac/ImplicitClass/ImplicitClassRecovery.java
Jim Laskey 04ad98ed32 8315458: Implement JEP 463: Implicitly Declared Classes and Instance Main Method (Second Preview)
Reviewed-by: jlahoda, mcimadamore, vromero, rriggs, alanb, mchung
2023-11-30 12:49:49 +00:00

9 lines
285 B
Java

/**
* @test /nodynamiccopyright/
* @compile/fail/ref=ImplicitClassRecovery.out -XDrawDiagnostics --enable-preview --source ${jdk.version} ImplicitClassRecovery.java
*/
public void main() {
//the following is intentionally missing a semicolon:
System.err.println("Hello!")
}