mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
forbid type annotations on anonymous class creation with interface base class (IDEA-67598)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class C
|
||||
{
|
||||
Object x = new <error descr="Anonymous class implements interface; cannot have type arguments"><Integer></error> D() { };
|
||||
Object x1 = new <Integer> P() { };
|
||||
Object x2 = new <Integer> U() { };
|
||||
Object x3 = new <error descr="Anonymous class implements interface; cannot have type arguments"><Integer></error> I() { };
|
||||
interface D{}
|
||||
abstract class P {}
|
||||
}
|
||||
|
||||
interface I {}
|
||||
class U {}
|
||||
Reference in New Issue
Block a user