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

13 lines
243 B
Kotlin
Vendored

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