20 lines
330 B
Kotlin
Vendored
20 lines
330 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
public interface Base {
|
|
fun test() = "base fail"
|
|
}
|
|
|
|
public interface Base2 : Base {
|
|
override fun test() = "base 2fail"
|
|
}
|
|
|
|
class Delegate : Base {
|
|
override fun test(): String {
|
|
return "OK"
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return object : Base2, Base by Delegate() {
|
|
}.test()
|
|
}
|