[FIR] Implement overload resolution by lambda return type

#KT-43129 Fixed
This commit is contained in:
Dmitriy Novozhilov
2020-11-09 16:39:06 +03:00
parent 025ec8e8b1
commit 9f5aadd2f4
10 changed files with 258 additions and 38 deletions
@@ -26,7 +26,7 @@ fun test_1() {
fun test_2() {
val x = create { 1 }
<!INAPPLICABLE_CANDIDATE!>takeInt<!>(x)
takeInt(x)
}
fun test_3() {
@@ -44,5 +44,5 @@ fun test_4() {
fun test_5() {
val x = create("") { 1 }
<!INAPPLICABLE_CANDIDATE!>takeInt<!>(x)
takeInt(x)
}
@@ -26,7 +26,7 @@ fun test_1() {
fun test_2() {
val x = create { 1 }
<!INAPPLICABLE_CANDIDATE!>takeInt<!>(x)
takeInt(x)
}
fun test_3() {
@@ -44,7 +44,7 @@ fun test_4() {
fun test_5() {
val x = create("") { 1 }
<!INAPPLICABLE_CANDIDATE!>takeInt<!>(x)
takeInt(x)
}
interface A