mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
16 lines
234 B
Kotlin
Vendored
16 lines
234 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
|
|
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
|
|
}
|