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

13 lines
289 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)
@Simple("OK")
fun box(): String {
return (::box.annotations.single() as Simple).value
}