// !CHECK_TYPE fun foo(x: Int?): Int = x!! fun elvis(x: Number?): Int { val result = (x as Int?) ?: foo(x) checkSubtype(x) return result } fun elvisWithRHSTypeInfo(x: Number?): Any? { val result = x ?: x!! checkSubtype(x) return result }