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

#KT-2739 Fixed
This commit is contained in:
Andrey Breslav
2012-09-07 18:24:12 +04:00
parent 213157a3c5
commit b46187a560
5 changed files with 43 additions and 8 deletions
@@ -0,0 +1,10 @@
// KT-2739 Error type inferred for hashSet(Pair, Pair, Pair)
fun foo<T>(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"
}