summaryrefslogtreecommitdiff
path: root/test/files/pos/tcpoly_infer_easy.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/tcpoly_infer_easy.scala')
-rw-r--r--test/files/pos/tcpoly_infer_easy.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/tcpoly_infer_easy.scala b/test/files/pos/tcpoly_infer_easy.scala
new file mode 100644
index 0000000000..0f1929502c
--- /dev/null
+++ b/test/files/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))
+}