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

13 lines
209 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// WITH_REFLECT
annotation class Ann(val value: String)
@Ann("OK")
val property: String
get() = ""
fun box(): String {
return (::property.annotations.single() as Ann).value
}