[Test] Update tests according to KT-58544

There are some cases for fake-override actualization which become
  prohibited in the new expect/actual model, so few tests start to fail,
  despite the fact that they are checking entirely different things
This commit is contained in:
Dmitriy Novozhilov
2023-05-22 14:18:16 +03:00
committed by Space Team
parent 8b9079d026
commit c64310a833
2 changed files with 6 additions and 4 deletions
@@ -21,7 +21,7 @@ actual open class Derived : Base() {
override fun toString() = "Derived"
// no operator modifier is legal because Base.plus is not expect
override fun plus(b: Base) = Derived()
override fun plus(b: Base): Base = Derived()
}
fun box() = "OK"
@@ -19,15 +19,17 @@ actual interface I {
actual fun test(source: String = "actual")
}
actual interface J : I {
actual interface J : I
interface K : J {
override fun test(source: String) {
if (source != "actual") throw AssertionError(source)
}
}
class K : J
class L : K
fun box(): String {
K().test()
L().test()
return "OK"
}