// !DIAGNOSTICS: -UNUSED_PARAMETER interface Bound1 interface Bound2 object First : Bound1, Bound2 object Second : Bound1, Bound2 interface WithParam1 interface WithParam2 class ClsWithParam1 : WithParam1, WithParam2 class ClsWithParam2 : WithParam1, WithParam2 fun intersect(vararg elements: S): S = TODO() fun > combineParams(first: T, vararg args: P): P = TODO() fun topLevel() = & WithParam2<{Bound1 & Bound2}>}")!>combineParams( intersect(First, Second), ClsWithParam1(), ClsWithParam2() ) fun test() { ")!>topLevel() }