Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/reflection/annotations/simpleParamAnnotation.kt
T

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