[java-highlighting] IDEA-246970 Local annotations should not be allowed in Java15-preview

GitOrigin-RevId: 1a1de1372304095197fdecf0c7b10bd8e9780442
This commit is contained in:
Tagir Valeev
2020-07-30 17:54:45 +07:00
committed by intellij-monorepo-bot
parent 5aeac35507
commit 4242b62d14
3 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,10 @@ class X {
Foo foo = () -> {};
}
void annotation() {
@<error descr="Local annotations are not allowed">interface</error> Anno {}
}
void modifiers() {
<error descr="Modifier 'static' not allowed here">static</error> interface Intf1 {}
<error descr="Modifier 'private' not allowed here">private</error> interface Intf2 {}