blob: 7490db2c7a8503845fa9e333b54038f7d38f6a35 [file] [log] [blame]
// 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"