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:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user