summaryrefslogtreecommitdiff
path: root/test/pending/pos
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-20 22:24:52 +0000
committerPaul Phillips <paulp@improving.org>2010-05-20 22:24:52 +0000
commitbb141f2c7d3a35e3a60c02b7385faf5c4adcad72 (patch)
tree636e94fccb10a279416bcbe385b45ea4758ca4bf /test/pending/pos
parent448c34d11bb9ad269072c8ede94a012749b47e5a (diff)
downloadscala-bb141f2c7d3a35e3a60c02b7385faf5c4adcad72.tar.gz
scala-bb141f2c7d3a35e3a60c02b7385faf5c4adcad72.tar.bz2
scala-bb141f2c7d3a35e3a60c02b7385faf5c4adcad72.zip
Moved the test for #3420 to pending and reopene...
Moved the test for #3420 to pending and reopened the ticket. The bug only materializes if scalac was itself built with -optimise. (We may need a richer language for describing optimise bugs.) No review.
Diffstat (limited to 'test/pending/pos')
-rw-r--r--test/pending/pos/bug3420.flags1
-rw-r--r--test/pending/pos/bug3420.scala5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/pending/pos/bug3420.flags b/test/pending/pos/bug3420.flags
new file mode 100644
index 0000000000..ea03113c66
--- /dev/null
+++ b/test/pending/pos/bug3420.flags
@@ -0,0 +1 @@
+-optimise -Xfatal-warnings \ No newline at end of file
diff --git a/test/pending/pos/bug3420.scala b/test/pending/pos/bug3420.scala
new file mode 100644
index 0000000000..0fc56ed67b
--- /dev/null
+++ b/test/pending/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)
+}