// RUN_PIPELINE_TILL: FRONTEND
public fun bar(s: String) {
    System.out.println("Length of $s is ${s.length}")
}

public fun foo() {
    var s: Any = "not null"
    if (s is String) {
        s = 42
        bar(<!TYPE_MISMATCH!>s<!>)
    }
}

/* GENERATED_FIR_TAGS: assignment, flexibleType, functionDeclaration, ifExpression, integerLiteral, isExpression,
javaFunction, javaProperty, localProperty, propertyDeclaration, smartcast, stringLiteral */
