[FIR] Support builder (coroutine) inference
#KT-37431 Fixed
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
fun <T> foo(@BuilderInference block: MutableList<T>.() -> Unit): T = null!!
|
||||
|
||||
fun takeString(s: String) {}
|
||||
|
||||
fun test() {
|
||||
val s = foo {
|
||||
this.add("")
|
||||
}
|
||||
takeString(s)
|
||||
}
|
||||
Reference in New Issue
Block a user