609d696202
Annotation arguments with default values are rendered as ... if renderDefaultAnnotationArguments is true. Tests: java retention does not taken into account by Descriptor comparator. Java retentinon changed to kotlin retention in some tests + one new test with java retention added. More accurate tests for intentions in byte code (visibility controlled).
12 lines
321 B
Kotlin
Vendored
12 lines
321 B
Kotlin
Vendored
package test
|
|
|
|
annotation(retention = AnnotationRetention.RUNTIME) class Ann(val c1: Int)
|
|
|
|
Ann('a' - 'a') class MyClass
|
|
|
|
fun box(): String {
|
|
val annotation = javaClass<MyClass>().getAnnotation(javaClass<Ann>())!!
|
|
if (annotation.c1 != 0) return "fail : expected = ${1}, actual = ${annotation.c1}"
|
|
return "OK"
|
|
}
|