diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-10-17 09:47:13 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-10-17 09:47:13 +0200 |
commit | 7b560213cb3c41dfd9e78c13070ea6123514b23b (patch) | |
tree | a2c6b5bf2cf46dea5c23dbb9ccb28a99f00cdd09 /test/files/neg | |
parent | 8986ee4fd56c53d563165d992185c6c532f35790 (diff) | |
download | scala-7b560213cb3c41dfd9e78c13070ea6123514b23b.tar.gz scala-7b560213cb3c41dfd9e78c13070ea6123514b23b.tar.bz2 scala-7b560213cb3c41dfd9e78c13070ea6123514b23b.zip |
Disable tests for SI-7020
These are still impudently being non-deterministic.
I've reopened the ticket so we can take another swing at it.
A well targetted s/HashMap/LinkedHashMap/ will almost certainly
be the salve.
fail - neg/t7020.scala [output differs]% scalac t7020.scala
t7020.scala:3: warning: match may not be exhaustive.
It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List((x: Int forSome x not in (1, 2, 4, 5, 6, 7)), _), List(1, _), List(2, _), List(4, _), List(5, _), List(6, _), List(7, _), List(??, _), List(_, _)
List(5) match {
^
t7020.scala:10: warning: match may not be exhaustive.
It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List((x: Int forSome x not in (1, 2, 4, 5, 6, 7)), _), List(1, _), List(2, _), List(4, _), List(5, _), List(6, _), List(7, _), List(??, _), List(_, _)
List(5) match {
^
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t7020.check | 17 | ||||
-rw-r--r-- | test/files/neg/t7020.flags | 1 | ||||
-rw-r--r-- | test/files/neg/t7020.scala | 30 |
3 files changed, 0 insertions, 48 deletions
diff --git a/test/files/neg/t7020.check b/test/files/neg/t7020.check deleted file mode 100644 index a869b12363..0000000000 --- a/test/files/neg/t7020.check +++ /dev/null @@ -1,17 +0,0 @@ -t7020.scala:3: error: match may not be exhaustive. -It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List(_, _) - List(5) match { - ^ -t7020.scala:10: error: match may not be exhaustive. -It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List(_, _) - List(5) match { - ^ -t7020.scala:17: error: match may not be exhaustive. -It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List(_, _) - List(5) match { - ^ -t7020.scala:24: error: match may not be exhaustive. -It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List(_, _) - List(5) match { - ^ -four errors found diff --git a/test/files/neg/t7020.flags b/test/files/neg/t7020.flags deleted file mode 100644 index e8fb65d50c..0000000000 --- a/test/files/neg/t7020.flags +++ /dev/null @@ -1 +0,0 @@ --Xfatal-warnings
\ No newline at end of file diff --git a/test/files/neg/t7020.scala b/test/files/neg/t7020.scala deleted file mode 100644 index cc5421bab1..0000000000 --- a/test/files/neg/t7020.scala +++ /dev/null @@ -1,30 +0,0 @@ -object Test { - // warning was non-deterministic - List(5) match { - case 1 :: Nil | 2 :: Nil => - case (x@(4 | 5 | 6)) :: Nil => - case 7 :: Nil => - case Nil => - } - - List(5) match { - case 1 :: Nil | 2 :: Nil => - case (x@(4 | 5 | 6)) :: Nil => - case 7 :: Nil => - case Nil => - } - - List(5) match { - case 1 :: Nil | 2 :: Nil => - case (x@(4 | 5 | 6)) :: Nil => - case 7 :: Nil => - case Nil => - } - - List(5) match { - case 1 :: Nil | 2 :: Nil => - case (x@(4 | 5 | 6)) :: Nil => - case 7 :: Nil => - case Nil => - } -} |