summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2010-06-16 08:56:35 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2010-06-16 08:56:35 +0000
commite0bb63d7a8ca354ba91e77dd042c69b2e0b1c339 (patch)
tree09832313486b5621f17f3c2d8e51ec0292254c26 /test/files
parent707078efcd40f9eb544018108a726a39d5bbdd06 (diff)
downloadscala-e0bb63d7a8ca354ba91e77dd042c69b2e0b1c339.tar.gz
scala-e0bb63d7a8ca354ba91e77dd042c69b2e0b1c339.tar.bz2
scala-e0bb63d7a8ca354ba91e77dd042c69b2e0b1c339.zip
Manual patch from paulp to address #3420 on 2.8.x
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/bug3420.flags1
-rw-r--r--test/files/pos/bug3420.scala5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/bug3420.flags b/test/files/pos/bug3420.flags
new file mode 100644
index 0000000000..ea03113c66
--- /dev/null
+++ b/test/files/pos/bug3420.flags
@@ -0,0 +1 @@
+-optimise -Xfatal-warnings \ No newline at end of file
diff --git a/test/files/pos/bug3420.scala b/test/files/pos/bug3420.scala
new file mode 100644
index 0000000000..0fc56ed67b
--- /dev/null
+++ b/test/files/pos/bug3420.scala
@@ -0,0 +1,5 @@
+class C {
+ val cv = Map[Int, Int](1 -> 2)
+ lazy val cl = Map[Int, Int](1 -> 2)
+ def cd = Map[Int, Int](1 -> 2)
+}