K2: Fix isHiddenForThisCallSite for non-direct overridden

Previously, the call of `z.sort` in test has been resolved
to the overridden member
This commit is contained in:
Denis.Zharkov
2023-05-31 18:28:29 +02:00
committed by Space Team
parent b992e698e4
commit d5f24addea
7 changed files with 63 additions and 3 deletions
@@ -0,0 +1,15 @@
// FULL_JDK
// FIR_IDENTICAL
// WITH_STDLIB
class A<T> : ArrayList<T>() {
override fun sort(t: Comparator<in T>) {
super.sort(t)
}
}
fun foo(x: MutableList<String>, y: ArrayList<String>, z: A<String>, c: Comparator<String>) {
x.<!DEBUG_INFO_CALL("fqName: kotlin.collections.sort; typeCall: inline extension function")!><!DEPRECATION_ERROR!>sort<!>(c)<!>
y.<!DEBUG_INFO_CALL("fqName: kotlin.collections.sort; typeCall: inline extension function")!><!DEPRECATION_ERROR!>sort<!>(c)<!>
z.<!DEBUG_INFO_CALL("fqName: kotlin.collections.sort; typeCall: inline extension function")!><!DEPRECATION_ERROR!>sort<!>(c)<!>
}