mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +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:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user