aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/tcpoly_infer_easy.scala
blob: bfa369f4a8301775dff56b9079a30c3a118a828c (plain) (blame)
1
2
3
4
5
object Test {
    def test[CC[+X] <: Iterable[X], A](xs: CC[A]): CC[A] = xs
    val xs = test(List(1,2))
    val xs2: List[Int] = test(List(1,2))
}