Make MISSING_VAL_ON_ANNOTATION_PARAMETER error instead of warning
Annotation with a parameter that is not stored doesn't make any sense
This commit is contained in:
@@ -5,4 +5,4 @@ object SomeObject
|
||||
|
||||
val some = SomeObject
|
||||
|
||||
annotation class BadAnnotation(s: String)
|
||||
annotation class BadAnnotation(val s: String)
|
||||
|
||||
@@ -5,6 +5,8 @@ internal val some: test.SomeObject
|
||||
|
||||
internal final annotation class BadAnnotation : kotlin.Annotation {
|
||||
/*primary*/ public constructor BadAnnotation(/*0*/ s: kotlin.String)
|
||||
internal final val s: kotlin.String
|
||||
internal final fun <get-s>(): kotlin.String
|
||||
}
|
||||
|
||||
test.BadAnnotation(s = IntegerValueType(1): IntegerValueType(1)) internal object SomeObject {
|
||||
|
||||
Reference in New Issue
Block a user