summaryrefslogtreecommitdiff
path: root/test/files/pos/tcpoly_method.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/tcpoly_method.scala')
-rw-r--r--test/files/pos/tcpoly_method.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/tcpoly_method.scala b/test/files/pos/tcpoly_method.scala
new file mode 100644
index 0000000000..34dde904c3
--- /dev/null
+++ b/test/files/pos/tcpoly_method.scala
@@ -0,0 +1,6 @@
+trait Iterable[m[+x], +t] {
+ def flatMap[resColl[+x] <: Iterable[resColl, x], s](f: t => resColl[s]): resColl[s]
+
+ def foo[a[x]] = "a"
+ val x = foo[List]
+} \ No newline at end of file