// RUN_PIPELINE_TILL: FRONTEND
fun baz(x: Int): Int = x + 1

class A {
    fun bar(x: Int) = baz(x)
}

fun foo() {
    val x: Int? = null

    A().bar(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
    if (x == null) return
    A().bar(x)
}

/* GENERATED_FIR_TAGS: additiveExpression, classDeclaration, equalityExpression, functionDeclaration, ifExpression,
integerLiteral, localProperty, nullableType, propertyDeclaration, smartcast */
