blob: f453112916d8e0d0e8656a79936b3c16c99dd20d [file] [log] [blame]
fun bar(x: Int): Int = x + 1
fun foo() {
val x: Int? = null
if (x != null) {
when (<!DEBUG_INFO_SMARTCAST!>x<!>) {
0 -> bar(<!DEBUG_INFO_SMARTCAST!>x<!>)
else -> {}
}
}
when (x) {
0 -> { if (<!SENSELESS_COMPARISON!>x == null<!>) return }
else -> { if (x == null) return }
}
bar(<!DEBUG_INFO_SMARTCAST!>x<!>)
}