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

@@ -3,6 +3,6 @@ JavaAnn("value") class MyClass
fun box(): String {
val ann = javaClass<MyClass>().getAnnotation(javaClass<JavaAnn>())
if (ann == null) return "fail: cannot find Ann on MyClass}"
if (ann.value() != "value") return "fail: annotation parameter i should be 'value', but was ${ann.value()}"
if (ann.value != "value") return "fail: annotation parameter i should be 'value', but was ${ann.value}"
return "OK"
}