Files
kotlin/compiler/testData/codegen/boxWithStdlib/reflection/annotations/simpleParamAnnotation.kt

8 lines
219 B
Kotlin
Vendored

annotation(retention = AnnotationRetention.RUNTIME) class Simple(val value: String)
fun test(@Simple("OK") x: Int) {}
fun box(): String {
return (::test.parameters.single().annotations.single() as Simple).value
}