blob: 2d035feecc46f5816b621d1b5b11f3c9ce7b1cbd [file]
// RUN_PIPELINE_TILL: BACKEND
// 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 */