Use separate constraint position during call substitution as part of inferring postponed type variables

^KT-47052 Fixed
^KT-47082 Fixed
This commit is contained in:
Victor Petukhov
2021-06-02 12:16:22 +03:00
parent 7a2ecc58d4
commit 124a14c8df
17 changed files with 314 additions and 81 deletions
@@ -0,0 +1,12 @@
// DONT_TARGET_EXACT_BACKEND: WASM
// WITH_RUNTIME
public inline fun <R, C : MutableCollection<in R>> flatMapTo1(destination: C, transform: (List<String>) -> Iterable<R>) {}
@OptIn(ExperimentalStdlibApi::class)
fun box(): String {
buildSet { // NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER is reported
flatMapTo1(this) { it }
}
return "OK"
}