summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2013-10-19 04:01:38 -0700
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2013-10-19 04:01:38 -0700
commitfc892176ec4fd877bae4fc31ad7769ec15bbd858 (patch)
treec8df8b1b41bc102d689b029be7948e2245fda413 /test/files/neg
parented80616ccd9de9fead9553a93c5fbddfc1ea4275 (diff)
parente9307e17990ed536e437755a87f41cbd98fb62fc (diff)
downloadscala-fc892176ec4fd877bae4fc31ad7769ec15bbd858.tar.gz
scala-fc892176ec4fd877bae4fc31ad7769ec15bbd858.tar.bz2
scala-fc892176ec4fd877bae4fc31ad7769ec15bbd858.zip
Merge pull request #3051 from retronym/merge/2.10.x-to-master-4
Merge 2.10.x to master (again)
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t7020.check19
-rw-r--r--test/files/neg/t7020.flags1
-rw-r--r--test/files/neg/t7020.scala30
3 files changed, 0 insertions, 50 deletions
diff --git a/test/files/neg/t7020.check b/test/files/neg/t7020.check
deleted file mode 100644
index f9600ca7fc..0000000000
--- a/test/files/neg/t7020.check
+++ /dev/null
@@ -1,19 +0,0 @@
-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 {
- ^
-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, 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:24: 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 {
- ^
-error: No warnings can be incurred under -Xfatal-warnings.
-four warnings found
-one error 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 =>
- }
-}