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

15 lines
309 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")
class A
fun box(): String {
return (A::class.annotations.single() as Simple).value
}