mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
10 lines
162 B
Kotlin
Vendored
10 lines
162 B
Kotlin
Vendored
const val z = "OK"
|
|
|
|
annotation class A(val value: String = z)
|
|
|
|
@A
|
|
class Test
|
|
|
|
fun box(): String {
|
|
return Test::class.java.getAnnotation(A::class.java).value
|
|
} |