summaryrefslogtreecommitdiff
path: root/test/files/neg/t8700b.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-01-24 13:03:22 +0100
committerLukas Rytz <lukas.rytz@gmail.com>2016-01-24 13:03:22 +0100
commitb0831e774e290148ce28cb7957794542dffe0366 (patch)
tree1380b224b4fe31598b07b3ddee9a46ff2e3eaf10 /test/files/neg/t8700b.check
parent1a9e649e34cda4306537d74ab425c33d5f6a77db (diff)
parent1081e718f8f8e174dbf615e42b157e187d3d3886 (diff)
downloadscala-b0831e774e290148ce28cb7957794542dffe0366.tar.gz
scala-b0831e774e290148ce28cb7957794542dffe0366.tar.bz2
scala-b0831e774e290148ce28cb7957794542dffe0366.zip
Merge remote-tracking branch 'upstream/2.12.x' into opt/elimBoxes
Diffstat (limited to 'test/files/neg/t8700b.check')
-rw-r--r--test/files/neg/t8700b.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t8700b.check b/test/files/neg/t8700b.check
new file mode 100644
index 0000000000..3bff78dd29
--- /dev/null
+++ b/test/files/neg/t8700b.check
@@ -0,0 +1,11 @@
+Bar_2.scala:2: warning: match may not be exhaustive.
+It would fail on the following input: B
+ def bar1(foo: Foo_1) = foo match {
+ ^
+Bar_2.scala:6: warning: match may not be exhaustive.
+It would fail on the following input: B
+ def bar2(foo: Baz_1) = foo match {
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found