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

15 lines
305 B
Kotlin

//ALLOW_AST_ACCESS
package test
import java.lang.annotation.ElementType
annotation class Anno(val t: ElementType)
Anno(ElementType.METHOD) class Class {
Anno(ElementType.PARAMETER) inner class Inner
Anno(ElementType.TYPE) class Nested
Anno(ElementType.ANNOTATION_TYPE) class object
}