blob: bd9decaca7e668fe5fd1978c646c9715b2b839eb [file]
// 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 */