f39c3041d2
Annotation with a parameter that is not stored doesn't make any sense
13 lines
242 B
Kotlin
13 lines
242 B
Kotlin
//ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
import java.lang.annotation.ElementType
|
|
|
|
annotation class Anno(vararg val t: ElementType)
|
|
|
|
Anno(ElementType.METHOD, ElementType.FIELD) fun foo() {}
|
|
|
|
Anno(ElementType.PACKAGE) val bar = 42
|
|
|
|
Anno() fun baz() {}
|