summaryrefslogtreecommitdiff
path: root/test/files/pos/t1236.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t1236.scala')
-rw-r--r--test/files/pos/t1236.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t1236.scala b/test/files/pos/t1236.scala
new file mode 100644
index 0000000000..5e221ce411
--- /dev/null
+++ b/test/files/pos/t1236.scala
@@ -0,0 +1,14 @@
+trait Empty[E[_]] {
+ def e[A]: E[A]
+}
+
+object T {
+ val ListEmpty = new Empty[List] {
+ def e[A] = Nil
+ }
+
+ def foo[F[_]](q:(String,String)) = "hello"
+ def foo[F[_]](e: Empty[F]) = "world"
+
+ val x = foo[List](ListEmpty)
+} \ No newline at end of file