blob: 859a97a615a36690e43b7b64e7c1ee9b4118e616 [file]
// RUN_PIPELINE_TILL: FRONTEND
// CHECK_TYPE
fun <T: Any> foo(vararg ts: T): T? = null
class Pair<A>(a: A)
fun test() {
val v = foo(Pair(1))
checkSubtype<Int>(<!ARGUMENT_TYPE_MISMATCH!>v<!>) // check that it is not error type
}
/* GENERATED_FIR_TAGS: classDeclaration, funWithExtensionReceiver, functionDeclaration, functionalType, infix,
integerLiteral, localProperty, nullableType, primaryConstructor, propertyDeclaration, typeConstraint, typeParameter,
typeWithExtension, vararg */