blob: f8838a63f3fd46bac33d60ef649b7a9549253e84 [file]
// CHECK_TYPE
fun foo(x: Number) {
when (x as Int) {
else -> checkSubtype<Int>(x)
}
checkSubtype<Int>(x)
}