mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Use properties of Java annotations in codegen tests
Retain obsolete versions until support for methods in Java annotations is dropped
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
fun box(): String {
|
||||
val ann = javaClass<MyJavaClass>().getAnnotation(javaClass<JavaAnn>())
|
||||
if (ann == null) return "fail: cannot find JavaAnn on MyClass"
|
||||
return ann.value().simpleName!!
|
||||
return ann.value.simpleName!!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user