Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/annotations/simpleClassAnnotation.kt

9 lines
189 B
Kotlin
Vendored

annotation(retention = AnnotationRetention.RUNTIME) class Simple(val value: String)
@Simple("OK")
class A
fun box(): String {
return (A::class.annotations.single() as Simple).value
}