blob: b24d12745acf0db682611876bad794a5d7b339e0 [file]
// RUN_PIPELINE_TILL: BACKEND
class Inv<X>(val x: X)
fun test_0(list: List<Int>, b: Boolean) {
val x = list.mapNotNull { if (b) Inv(it) else null }.first().x
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, ifExpression, lambdaLiteral, localProperty, nullableType,
primaryConstructor, propertyDeclaration, typeParameter */