Files
kotlin-fork/compiler/testData/codegen/box/inference/builderInference/kt47052.kt
T
2021-06-03 12:37:17 +03:00

12 lines
361 B
Kotlin
Vendored

// 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"
}