// !DIAGNOSTICS: -NOTHING_TO_INLINE // See KT-9143: smart cast on a variable nulled inside a lambda argument inline fun foo(t1: T, t2: T) = t1 ?: t2 inline fun bar(l: (T) -> Unit): T = null!! fun use() { var x: Int? x = 5 // Write to x is AFTER x.hashCode() // No smart cast should be here! foo(bar { x = null }, x.hashCode()) }