Add specific warning when KClass literal expected

This commit is contained in:
Denis Zharkov
2015-04-15 17:57:59 +03:00
parent 98ffa3b475
commit 97e4a899cf
4 changed files with 8 additions and 2 deletions
@@ -16,5 +16,5 @@ Ann1(<!ANNOTATION_PARAMETER_MUST_BE_CONST!><!UNRESOLVED_REFERENCE!>A3<!>::class<
class MyClass2
val x = A1::class
Ann1(<!ANNOTATION_PARAMETER_MUST_BE_CONST!>x<!>)
Ann1(<!ANNOTATION_PARAMETER_MUST_BE_KCLASS_LITERAL!>x<!>)
class MyClass3