mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
register make class static for illegal enclosing usage error (IDEA-155700)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// "Make 'C2' static" "true"
|
||||
class C {
|
||||
public abstract static class C2 {
|
||||
abstract void m();
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
new C.C2() {
|
||||
@Override
|
||||
void m() {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// "Make 'C2' static" "true"
|
||||
class C {
|
||||
public abstract class C2 {
|
||||
abstract void m();
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
new C.<caret>C2() {
|
||||
@Override
|
||||
void m() {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user