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)
21 lines
442 B
Kotlin
Vendored
21 lines
442 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_REFLECT
|
|
|
|
interface A {
|
|
fun foo(): Collection<Any>
|
|
}
|
|
|
|
abstract class B : A {
|
|
override fun foo(): Collection<String> = null!!
|
|
}
|
|
|
|
fun box(): String {
|
|
val clazz = B::class.java
|
|
if (clazz.declaredMethods.first().genericReturnType.toString() != "java.util.Collection<java.lang.String>") return "fail 1"
|
|
|
|
if (clazz.methods.filter { it.name == "foo" }.size != 1) return "fail 2"
|
|
|
|
return "OK"
|
|
}
|