dbbb999952
#KT-37431 Fixed
10 lines
184 B
Kotlin
Vendored
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)
|
|
} |