mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 16:19:58 +07:00
add error on qualified anonymous class creation when base type interface is (IDEA-57305)
This commit is contained in:
+13
@@ -17,3 +17,16 @@ class b extends A {
|
||||
static class c {}
|
||||
}
|
||||
|
||||
|
||||
class WithAnonym {
|
||||
interface I {
|
||||
}
|
||||
class Inner{}
|
||||
}
|
||||
|
||||
class WithAnonymInheritor extends WithAnonym {
|
||||
{
|
||||
<error descr="Anonymous class implements interface; cannot have qualifier for new">this.new I() {}</error>;
|
||||
this.new Inner() {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user