summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-06-14 12:55:38 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-06-14 12:55:38 +0000
commit0f7ee5e8f2bd094926d3a7011834c2ca426bd2ba (patch)
tree2ae26dbdd2c036f39d4d17587ff6f879495d0823
parent5fa6e7edec2593e252388088a013f97c60ca6456 (diff)
downloadscala-0f7ee5e8f2bd094926d3a7011834c2ca426bd2ba.tar.gz
scala-0f7ee5e8f2bd094926d3a7011834c2ca426bd2ba.tar.bz2
scala-0f7ee5e8f2bd094926d3a7011834c2ca426bd2ba.zip
Test for #3560.
-rw-r--r--test/files/pos/t3560.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/pos/t3560.scala b/test/files/pos/t3560.scala
new file mode 100644
index 0000000000..3cde9710dc
--- /dev/null
+++ b/test/files/pos/t3560.scala
@@ -0,0 +1,2 @@
+trait Foo[X] { def foo : Map[String,Foo[X]] }
+object T3560 { def f[T]() : Foo[T] = new Foo[T] { var foo = Map[String,Foo[T]]() } }