Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/inference/builderInference.kt
T
2022-06-21 15:01:56 +02:00

10 lines
222 B
Kotlin
Vendored

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