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:
+1
-1
@@ -6,5 +6,5 @@ JavaAnn(OK::class) class MyClass
|
||||
fun box(): String {
|
||||
val ann = javaClass<MyClass>().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