mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
10 lines
188 B
Kotlin
Vendored
10 lines
188 B
Kotlin
Vendored
@Retention(AnnotationRetention.RUNTIME)
|
|
annotation class Simple(val value: String)
|
|
|
|
@Simple("OK")
|
|
class A
|
|
|
|
fun box(): String {
|
|
return (A::class.annotations.single() as Simple).value
|
|
}
|