Files
kotlin/compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/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

11 lines
193 B
Kotlin

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