IDEA-230688 Bad code green: "Modifier 'private' not allowed here" on local record declaration

GitOrigin-RevId: 564a4b764921031b05f9c0f8dd1c9f475deb5727
This commit is contained in:
Tagir Valeev
2020-01-16 08:11:51 +00:00
committed by intellij-monorepo-bot
parent 1ba27623ea
commit 0093364d1a
2 changed files with 3 additions and 1 deletions
@@ -3,6 +3,8 @@ class Foo {
record NoComponent() {}
static record DeclaredStatic() {}
<error descr="Modifier 'private' not allowed here">private</error> record Private() {}
}
static int STATIC_VAR = 3;