blob: 179154bac2d0042158c12bab63262bdb16fd2c75 [file]
// FIR_IDENTICAL
fun trans(n: Int, f: () -> Boolean) = if (f()) n else null
fun foo() {
var i: Int? = 5
if (i != null) {
class Changing {
fun bar() {
i = null
}
}
<!SMARTCAST_IMPOSSIBLE!>i<!>.hashCode()
Changing().bar()
<!SMARTCAST_IMPOSSIBLE!>i<!>.hashCode()
}
}