summaryrefslogtreecommitdiff
path: root/test/files/neg/t7020.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-08-11 23:17:08 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-08-13 11:26:34 +0200
commitebb01e05cbe4541838efa189196fe7a49ddb82cf (patch)
tree6e668aae34663b1aaf2020aa7dee8e7d8cc7ca8c /test/files/neg/t7020.check
parent1a0318454a79287c1afd49853d434e68d74d4b61 (diff)
downloadscala-ebb01e05cbe4541838efa189196fe7a49ddb82cf.tar.gz
scala-ebb01e05cbe4541838efa189196fe7a49ddb82cf.tar.bz2
scala-ebb01e05cbe4541838efa189196fe7a49ddb82cf.zip
SI-7020 Determinism for pattern matcher warnings
Use LinkedHashSet for the DPLL algorithm for determistic counter example generation. Before, the test compiled with: [info] v2.10.2 => /Users/jason/usr/scala-v2.10.2-0-g60d462e test/files/neg/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(_, _) List(5) match { ^ test/files/neg/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(_, _) List(5) match { ^ test/files/neg/t7020.scala:17: warning: match may not be exhaustive. It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 6, 7)), _), List(1, _), List(2, _), List(4, _), List(5, _), List(6, _), List(7, _), List(??, _) List(5) match { ^ test/files/neg/t7020.scala:24: warning: match may not be exhaustive. It would fail on the following input: List(_, _) List(5) match { ^
Diffstat (limited to 'test/files/neg/t7020.check')
-rw-r--r--test/files/neg/t7020.check17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/t7020.check b/test/files/neg/t7020.check
new file mode 100644
index 0000000000..a869b12363
--- /dev/null
+++ b/test/files/neg/t7020.check
@@ -0,0 +1,17 @@
+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