Files
kotlin/compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt
Alexander Udalov f39c3041d2 Make MISSING_VAL_ON_ANNOTATION_PARAMETER error instead of warning
Annotation with a parameter that is not stored doesn't make any sense
2014-09-15 19:30:52 +04:00

13 lines
217 B
Kotlin

//ALLOW_AST_ACCESS
package test
import java.lang.annotation.ElementType
annotation class Anno(val t: ElementType)
class Class {
Anno(ElementType.METHOD) fun foo() {}
Anno(ElementType.FIELD) var bar = 42
}