Add warning when 'val' keyword on annotation parameter is missing

#KT-1900
This commit is contained in:
Natalia Ukhorskaya
2013-12-18 19:16:45 +04:00
parent 513a59d552
commit cce6b952bd
7 changed files with 20 additions and 3 deletions
@@ -1,6 +1,6 @@
annotation class my
annotation class my1(i : Int)
annotation class my2(i : Int = 0)
annotation class my1(val i : Int)
annotation class my2(val i : Int = 0)
my fun foo() {}
<!NO_VALUE_FOR_PARAMETER!>my1<!> fun foo2() {}