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:
Denis Zharkov
2015-04-21 12:00:18 +03:00
parent 6ca7d2aad7
commit 29bf24b7d3
29 changed files with 326 additions and 21 deletions

View File

@@ -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!!
}