// RUN_PIPELINE_TILL: BACKEND
// DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_EXPRESSION

interface Bound1
interface Bound2
object First : Bound1, Bound2
object Second : Bound1, Bound2

fun <S : Bound1> select(vararg args: S): S = TODO()

class Cls {
    val property = select(First, Second)
}

fun test() {
    val v = Cls().property
    v
}

/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, interfaceDeclaration, intersectionType, localProperty,
objectDeclaration, propertyDeclaration, typeConstraint, typeParameter, vararg */
