Files
kotlin/compiler/testData/codegen/box/reflection/annotations/simpleClassAnnotation.kt
2018-06-09 19:15:38 +03:00

16 lines
334 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// 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
}