Files
kotlin-fork/compiler/testData/codegen/box/reflection/annotations/simpleParamAnnotation.kt
T
2023-06-07 14:59:38 +00:00

12 lines
258 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// 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
}