mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
11 lines
235 B
Kotlin
Vendored
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
|
|
}
|