K2: prefer derived class sources for callable copies (e.g. fake overrides)

This commit is contained in:
Mikhail Glukhikh
2023-10-19 14:28:54 +02:00
committed by Space Team
parent 4b2a122f80
commit 3cb9396b20
27 changed files with 141 additions and 54 deletions
@@ -1,9 +0,0 @@
interface B {
fun getX() = 1
}
interface D {
<!ACCIDENTAL_OVERRIDE!>val x: Int<!>
}
class C(d: D) : D by d, B
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface B {
fun getX() = 1
}