[JVM IR] Maintain KT-36188 bug compatibility between non-IR and IR
backends.
This commit is contained in:
committed by
Alexander Udalov
parent
435e74b74b
commit
2239b5ceab
@@ -0,0 +1,20 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// Test for KT-36188 bug compatibility between non-IR and IR backends
|
||||
|
||||
interface A {
|
||||
fun foo(a: String = "OK"): String
|
||||
}
|
||||
|
||||
interface A2 : A
|
||||
|
||||
interface B {
|
||||
fun foo(a: String = "Fail"): String
|
||||
}
|
||||
|
||||
class Impl : A2, B {
|
||||
override fun foo(a: String) = a
|
||||
}
|
||||
|
||||
fun box(): String = Impl().foo()
|
||||
@@ -0,0 +1,22 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// Test for KT-36188 bug compatibility between non-IR and IR backends
|
||||
|
||||
interface A {
|
||||
fun foo(a: String = "OK"): String
|
||||
}
|
||||
|
||||
interface A2 : A
|
||||
|
||||
interface B {
|
||||
fun foo(a: String = "Fail"): String
|
||||
}
|
||||
|
||||
interface C : A2, B
|
||||
|
||||
class Impl : C {
|
||||
override fun foo(a: String) = a
|
||||
}
|
||||
|
||||
fun box(): String = Impl().foo()
|
||||
Reference in New Issue
Block a user