Files
kotlin-fork/compiler/testData/codegen/box/reflection/annotations/simpleClassAnnotation.kt
T
2023-06-07 14:59:38 +00:00

13 lines
228 B
Kotlin
Vendored

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