Files
kotlin-fork/compiler/testData/codegen/box/inference/builderInference/kt47052.kt
T
2021-10-02 06:14:35 +00:00

13 lines
357 B
Kotlin
Vendored

// WITH_RUNTIME
// IGNORE_BACKEND_FIR: JVM_IR
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"
}