KT-1152 Only allow annotation classes to be instantiated as annotations
#KT-1152 Fixed
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import java.util.ArrayList
|
||||
|
||||
<!NONE_APPLICABLE!>ArrayList<!><Int>(1, 1) fun b() {}
|
||||
<!UNRESOLVED_REFERENCE!>Xoo<!>(<!UNRESOLVED_REFERENCE!>x<!>) fun c() {}
|
||||
Deprecated(<!TOO_MANY_ARGUMENTS, UNRESOLVED_REFERENCE!>x<!>) fun a() {}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo
|
||||
|
||||
<!NOT_AN_ANNOTATION_CLASS!>Foo<!> class Bar
|
||||
Reference in New Issue
Block a user