blob: 810e0ba932bc0f4e2abb2fe071ac71e6d0e5c5fc [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
fun foo(arg: Boolean) {
val x : Int
if (arg) {
x = 4
} else {
x = 2
}
x.hashCode()
class Local {
fun bar() {
x.hashCode()
}
}
fun local(): Int {
return x.hashCode()
}
}
/* GENERATED_FIR_TAGS: assignment, classDeclaration, functionDeclaration, ifExpression, integerLiteral, localClass,
localFunction, localProperty, propertyDeclaration */