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,8 @@
fun foo<T>(vararg <!UNUSED_PARAMETER!>ts<!>: T): T? = null
class Pair<A>(a: A)
fun test() {
val v = foo(Pair(1))
<!TYPE_MISMATCH!>v<!>: Int // check that it is not error type
}