14 lines
281 B
Kotlin
Vendored
14 lines
281 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
import java.lang.annotation.ElementType
|
|
|
|
annotation class Anno(vararg val t: ElementType)
|
|
|
|
@Anno(ElementType.METHOD, ElementType.FIELD) fun foo() {}
|
|
|
|
@field:Anno(ElementType.PACKAGE) val bar = { 42 }()
|
|
|
|
@Anno() fun baz() {}
|