diff options
author | Paul Phillips <paulp@improving.org> | 2010-05-20 20:11:19 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-05-20 20:11:19 +0000 |
commit | 9dae73d4cd606a2ad2336574d3f2498046e2b8f0 (patch) | |
tree | 7228a6eb0b0f58f635f39162b679b8e5b65b1cb7 | |
parent | 20919ccb1a571bf0f0251c9c59413c1969d6d359 (diff) | |
download | scala-9dae73d4cd606a2ad2336574d3f2498046e2b8f0.tar.gz scala-9dae73d4cd606a2ad2336574d3f2498046e2b8f0.tar.bz2 scala-9dae73d4cd606a2ad2336574d3f2498046e2b8f0.zip |
Test case for #3420, closes #3420.
-rw-r--r-- | test/files/pos/bug3420.flags | 1 | ||||
-rw-r--r-- | test/files/pos/bug3420.scala | 5 |
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) +} |