// FIR_IDENTICAL // !LANGUAGE: +DefinitelyNonNullableTypes fun foo(x: T, y: T & Any): T & Any = x ?: y fun main() { foo("", "").length foo("", null).length foo(null, "").length foo(null, null).length foo("", "").length foo("", null).length foo(null, "").length }