mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
9 lines
218 B
Kotlin
Vendored
9 lines
218 B
Kotlin
Vendored
@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
|
|
}
|