summaryrefslogtreecommitdiff
path: root/test/files/pos/t1236.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2009-11-13 12:17:50 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2009-11-13 12:17:50 +0000
commit261a8076558d98dbf1311ec6b1db6dbb10f8e9c9 (patch)
treee01c066f1e436eaae94e4ed72775c1af243332dd /test/files/pos/t1236.scala
parentd47dbcf17b45bb9efc28c2171a06a9c835595122 (diff)
downloadscala-261a8076558d98dbf1311ec6b1db6dbb10f8e9c9.tar.gz
scala-261a8076558d98dbf1311ec6b1db6dbb10f8e9c9.tar.bz2
scala-261a8076558d98dbf1311ec6b1db6dbb10f8e9c9.zip
fixed #1236
another Symbol::tpe bites the dust (should'be been tpeHK)
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