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
@@ -0,0 +1,7 @@
abstract class A<T> {
fun foo(x: T) {} // (1)
}
class B : A<String>() {
// fake-override fun foo(x: String) // (2) should use 'B' class source
}