Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
varargs
/
varargsAndPair.kt
blob: bf7328a70f0a77cdd35c289aee64240ad6b7fd37 [
file
]
// 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
>(<!
TYPE_MISMATCH
!>
v
<!>)
// check that it is not error type
}