Files
kotlin/compiler/testData/codegen/box/reflection/annotations/simpleFunAnnotation.kt

10 lines
193 B
Kotlin
Vendored

// WITH_REFLECT
@Retention(AnnotationRetention.RUNTIME)
annotation class Simple(val value: String)
@Simple("OK")
fun box(): String {
return (::box.annotations.single() as Simple).value
}