diff options
Diffstat (limited to 'tests/untried/pos/tcpoly_infer_easy.scala')
-rw-r--r-- | tests/untried/pos/tcpoly_infer_easy.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/pos/tcpoly_infer_easy.scala b/tests/untried/pos/tcpoly_infer_easy.scala new file mode 100644 index 000000000..0f1929502 --- /dev/null +++ b/tests/untried/pos/tcpoly_infer_easy.scala @@ -0,0 +1,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)) +} |