mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
15 lines
376 B
Kotlin
Vendored
15 lines
376 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
@Target(AnnotationTarget.PROPERTY)
|
|
annotation class Anno(val value: String)
|
|
|
|
annotation class M(@Anno("OK") val result: Int)
|
|
|
|
fun box(): String =
|
|
M::class.java.getAnnotation(Anno::class.java)?.value
|
|
// TODO: fix KT-22463 and enable this test
|
|
// ?: "Fail: no annotation"
|
|
?: "OK"
|