mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
15 lines
397 B
Java
15 lines
397 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8246704
|
|
* @summary Verify preview APIs are reported correctly when using --release.
|
|
* @compile/fail/ref=PreviewAPIsWithRelease.out -XDrawDiagnostics --release 14 PreviewAPIsWithRelease.java
|
|
*/
|
|
|
|
import com.sun.source.tree.Tree.Kind;
|
|
|
|
public class PreviewAPIsWithRelease {
|
|
void test() {
|
|
"".stripIndent();
|
|
Kind r = Kind.RECORD;
|
|
}
|
|
}
|