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() {}
@@ -24,6 +24,6 @@ annotation class Annotation7(val name: String) <!ANNOTATION_CLASS_WITH_BODY!>{}<
annotation class Annotation8(var name: String = "") <!ANNOTATION_CLASS_WITH_BODY!>{}<!>
annotation class Annotation9(name: String)
annotation class Annotation9(val name: String)
annotation class Annotation10
@@ -0,0 +1,5 @@
annotation class Ann(
val a: Int,
var b: Int,
<!MISSING_VAL_ON_ANNOTATION_PARAMETER!>c: String<!>
)