JVM_IR: repair overriddenSymbols in InterfaceDelegationLowering

When creating delegation redirectors for default implementations of
interface functions, `overriddenSymbols` should be repaired across the
whole module, not just a particular file.
This commit is contained in:
Georgy Bronnikov
2019-10-22 16:14:04 +03:00
parent c127cbaa6a
commit b63f9176a3
8 changed files with 127 additions and 86 deletions
@@ -0,0 +1,18 @@
// FILE: 1.kt
class Test: Impl(), CProvider
fun box() = "OK"
// FILE: 2.kt
open class C
class D: C()
interface CProvider {
fun getC(): C
}
interface DProvider {
fun getC(): D = D()
}
open class Impl: DProvider