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

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