blob: 5cb9413f70aed977f316abe745b41672ce4aea2c [file]
// RUN_PIPELINE_TILL: CODEGEN
// DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(arg: Int?) {
var x = arg
if (x == null) return
run {
// Safe: since `run` is in-place
x.hashCode()
}
x = null
}
/* GENERATED_FIR_TAGS: assignment, equalityExpression, functionDeclaration, ifExpression, lambdaLiteral, localProperty,
nullableType, propertyDeclaration, smartcast */