blob: 2c6716c5b3b71dde3c497d0b7a9266d7d0e15bf7 [file]
// RUN_PIPELINE_TILL: BACKEND
fun <T> foo(block: MutableList<T>.() -> Unit): T = null!!
fun takeString(s: String) {}
fun test() {
val s = foo {
this.add("")
}
takeString(s)
}
/* GENERATED_FIR_TAGS: checkNotNullCall, functionDeclaration, functionalType, lambdaLiteral, localProperty, nullableType,
propertyDeclaration, stringLiteral, thisExpression, typeParameter, typeWithExtension */