e7e80be34a
Before this commit we considered !isOverride as a sign that function / field / accessor has no overridden symbols. However, it's false for deserialized, because isOverride is always false there. This commit fixes 68 BB tests but breaks 25 BB tests (not yet muted)
27 lines
598 B
Kotlin
Vendored
27 lines
598 B
Kotlin
Vendored
// WITH_REFLECT
|
|
// IGNORE_BACKEND: JS_IR, JS, NATIVE
|
|
|
|
// different annotation order
|
|
// IGNORE_BACKEND: ANDROID
|
|
|
|
package test
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
annotation class Ann1
|
|
annotation class Ann2
|
|
|
|
class Foo {
|
|
@setparam:Ann1
|
|
var delegate = " "
|
|
set(@Ann2 value) {}
|
|
}
|
|
|
|
fun box(): String {
|
|
val setterParameters = Foo::delegate.setter.parameters
|
|
assertEquals(2, setterParameters.size)
|
|
assertEquals("[]", setterParameters.first().annotations.toString())
|
|
assertEquals("[@test.Ann2(), @test.Ann1()]", setterParameters.last().annotations.toString())
|
|
return "OK"
|
|
}
|