blob: 8023f55d04de354d5f410c1a1766b1d1e698cf84 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-39012
interface A
fun <T> foo(f: (MutableList<T>) -> Unit): List<T>? = TODO()
fun <T> listOf(): List<T> = TODO()
fun bar1(w: List<CharSequence>): List<CharSequence>? {
return foo { container ->
container.add("")
} ?: w
}
fun bar2(): List<CharSequence>? {
return foo { container ->
container.add("")
} ?: listOf()
}
/* GENERATED_FIR_TAGS: elvisExpression, functionDeclaration, functionalType, interfaceDeclaration, lambdaLiteral,
nullableType, stringLiteral, typeParameter */