mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-30 23:37:04 +07:00
20 lines
324 B
Java
20 lines
324 B
Java
// Qualified new of static class
|
|
|
|
class A {
|
|
b b;
|
|
A() {
|
|
<error descr="Qualified new of static class">b.new c()</error>;
|
|
b.new inner();
|
|
}
|
|
class inner {}
|
|
|
|
void f() {
|
|
char[] c = <error descr="Invalid qualified new">b.new char[0]</error>;
|
|
}
|
|
}
|
|
|
|
class b extends A {
|
|
static class c {}
|
|
}
|
|
|