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

14 lines
331 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)
fun test(@Simple("OK") x: Int) {}
fun box(): String {
return (::test.parameters.single().annotations.single() as Simple).value
}