Files
kotlin-fork/backend.native/tests/external/codegen/box/reflection/annotations/simpleFunAnnotation.kt
T
2017-03-13 15:31:46 +03:00

13 lines
297 B
Kotlin

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