blob: 1876dbeaea441012cea9dc799c08ad142e9ae7d9 [file]
// RUN_PIPELINE_TILL: CODEGEN
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 */