// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER // !LANGUAGE: +InferenceCompatibility fun foo(x: T, fn: (VR?, T) -> Unit) {} fun takeInt(x: Int) {} fun main(x: Int) { foo(x) { prev: Int?, new -> takeInt(new) } // `new` is `Int` in OI, `Int?` in NI }