[FE 1.0] Don't try to report specialized resolution ambiguity error for builder inference if the corresponding substitutor is empty

^KT-50989 Fixed
This commit is contained in:
Victor Petukhov
2022-01-27 11:33:31 +03:00
committed by teamcity
parent eeadd8588d
commit 1a23cd8c45
8 changed files with 43 additions and 2 deletions
@@ -0,0 +1,7 @@
// WITH_STDLIB
fun main() {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>buildList<!> {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(get(0))
}
}
@@ -0,0 +1,7 @@
// WITH_STDLIB
fun main() {
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>buildList<!> {
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE, OVERLOAD_RESOLUTION_AMBIGUITY!>println<!>(get(0))
}
}
@@ -0,0 +1,3 @@
package
public fun main(): kotlin.Unit