blob: 408573de09f0368b15584402f9adb51c211895cd [file]
// TARGET_BACKEND: JVM
// WITH_STDLIB
@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"