14 lines
299 B
Kotlin
Vendored
14 lines
299 B
Kotlin
Vendored
fun checkJump(x: Int?, y: Int?) {
|
|
while (true) {
|
|
if (x ?: break == 0) {
|
|
y!!
|
|
} else {
|
|
y!!
|
|
}
|
|
// Ok
|
|
<!DEBUG_INFO_SMARTCAST!>y<!>.hashCode()
|
|
}
|
|
// Smart cast here is erroneous: y is nullable
|
|
y<!UNSAFE_CALL!>.<!>hashCode()
|
|
}
|