JVM IR: Generate interface delegations for specialized interface defaults
This commit is contained in:
committed by
Georgy Bronnikov
parent
8746d08dd5
commit
a49ed1eca2
@@ -0,0 +1,16 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
interface A {
|
||||
val result: Any get() = "Fail"
|
||||
}
|
||||
|
||||
interface B : A {
|
||||
override val result: String get() = "OK"
|
||||
}
|
||||
|
||||
abstract class AImpl : A
|
||||
|
||||
class BImpl : AImpl(), B
|
||||
|
||||
fun box(): String =
|
||||
(BImpl() as A).result.toString()
|
||||
Reference in New Issue
Block a user