blob: 31f46a003997c7c69e3d958472f47bf115a0b0fc [file]
// RUN_PIPELINE_TILL: FRONTEND
// CHECK_TYPE
fun foo(x: Number) {
when (x as Int) {
else -> checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
}
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>x<!>)
}
/* GENERATED_FIR_TAGS: classDeclaration, funWithExtensionReceiver, functionDeclaration, functionalType, infix,
nullableType, smartcast, typeParameter, typeWithExtension, whenExpression, whenWithSubject */