Files
kotlin/compiler/testData/codegen/box/reflection/annotations/propertyWithoutBackingField.kt
2016-11-09 21:41:12 +03:00

15 lines
282 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_REFLECT
annotation class Ann(val value: String)
@Ann("OK")
val property: String
get() = ""
fun box(): String {
return (::property.annotations.single() as Ann).value
}