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:
@@ -3,7 +3,7 @@ package test
|
||||
|
||||
import java.lang.annotation.ElementType
|
||||
|
||||
annotation class Anno(t: ElementType)
|
||||
annotation class Anno(val t: ElementType)
|
||||
|
||||
class Class {
|
||||
Anno(ElementType.METHOD) fun foo() {}
|
||||
|
||||
@@ -2,6 +2,8 @@ package test
|
||||
|
||||
internal final annotation class Anno : kotlin.Annotation {
|
||||
/*primary*/ public constructor Anno(/*0*/ t: java.lang.annotation.ElementType)
|
||||
internal final val t: java.lang.annotation.ElementType
|
||||
internal final fun <get-t>(): java.lang.annotation.ElementType
|
||||
}
|
||||
|
||||
internal final class Class {
|
||||
|
||||
Reference in New Issue
Block a user