KT-1152 Only allow annotation classes to be instantiated as annotations

#KT-1152 Fixed
This commit is contained in:
Andrey Breslav
2012-03-28 19:40:45 +04:00
parent 25a972cd80
commit 0a42abc7c9
9 changed files with 47 additions and 24 deletions
@@ -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() {}