Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/builderInference.kt
T
Dmitriy Novozhilov dbbb999952 [FIR] Support builder (coroutine) inference
#KT-37431 Fixed
2020-06-29 12:19:02 +03:00

10 lines
184 B
Kotlin
Vendored

fun <T> foo(@BuilderInference block: MutableList<T>.() -> Unit): T = null!!
fun takeString(s: String) {}
fun test() {
val s = foo {
this.add("")
}
takeString(s)
}