// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // !LANGUAGE: +NewInference interface Bound { fun foo() {} } interface Bound1 : Bound interface Bound2 : Bound object First : Bound1, Bound2 object Second : Bound1, Bound2 class Out(val param: O) fun anyBound(vararg elements: S): Out = TODO() fun topLevel() = anyBound(First, Second) fun test() { topLevel().param.foo() }