mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
warn about private/static modifiers inside local classes (IDEA-85567)
This commit is contained in:
+8
@@ -66,3 +66,11 @@ interface i3 {
|
||||
<error descr="Modifier 'transient' not allowed here">transient</error> int m2() { return 0; }
|
||||
<error descr="Modifier 'synchronized' not allowed here">synchronized</error> int m3() { return 0; }
|
||||
}
|
||||
|
||||
class LocalClassWithInner {
|
||||
void foo () {
|
||||
class A {
|
||||
<error descr="Modifier 'private' not allowed here">private</error> class B {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user