Files
kotlin-fork/compiler/testData/codegen/boxWithStdlib/reflection/annotations/simpleParamAnnotation.kt
T
2016-03-09 10:25:38 +03:00

11 lines
235 B
Kotlin
Vendored

// 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
}