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

12 lines
186 B
Kotlin
Vendored

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