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

15 lines
316 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// 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
}