blob: 508bb4b2d80b5c9cdecc936aadf6bdc0fb34d640 [file]
// RUN_PIPELINE_TILL: BACKEND
// DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(arg: Int?) = run {
var x = arg
if (x == null) return@run
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
}
class My {
fun foo(arg: Int?) = run {
var x = arg
if (x == null) return@run
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
}
fun Int?.bar() = run {
var x = this
if (x == null) return@run
<!DEBUG_INFO_SMARTCAST!>x<!>.hashCode()
}
}
/* GENERATED_FIR_TAGS: classDeclaration, equalityExpression, funWithExtensionReceiver, functionDeclaration, ifExpression,
lambdaLiteral, localProperty, nullableType, propertyDeclaration, smartcast, thisExpression */