[FIR] Handle receiver types of extension methods when computing maximally specific types.

Test case (from testPrimitiveReceiver):

fun Short.foo() = 3
fun Int.foo() = 4

1::foo
This commit is contained in:
Juan Chen
2020-04-13 15:35:08 -07:00
committed by Dmitriy Novozhilov
parent f7dc06a772
commit a1e0e8b0e7
10 changed files with 15 additions and 41 deletions
@@ -20,7 +20,7 @@ fun fas() {}
fun fas(i: Int = 1) {}
fun test() {
<!UNRESOLVED_REFERENCE!>B::foo<!> // todo KT-9601 Chose maximally specific function in callable reference
B::foo // todo KT-9601 Chose maximally specific function in callable reference
B::bar checkType { _<KFunction1<B, Unit>>() }