// KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)

fun <T> foo(vararg ts: T): T? = null

class Pair<A>(a: A)

fun box(): String {
    val v = foo(Pair(1))
    return if (v == null) "OK" else "fail"
}
