Substitute type variables properly in ConeOverloadConflictResolver

#KT-46187 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-03-17 10:58:35 +03:00
committed by Space
parent 310ab12a92
commit b327f5c731
9 changed files with 19 additions and 46 deletions
@@ -22,7 +22,7 @@ fun B.foo(): Double = 0.0
fun call(a: Any) {}
fun testA(a: A) {
call(A::<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>)
call(A::foo)
call(A.Companion::foo)
}
@@ -1,15 +0,0 @@
// SKIP_TXT
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
fun <R> bar(f: () -> R): R = TODO()
fun Any.foo() = 1
fun A.foo() = ""
class A {
fun main() {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>bar<!>(::<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>) checkType { _<String>() }
}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// SKIP_TXT
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER