diff options
author | Paul Phillips <paulp@improving.org> | 2012-08-10 07:29:31 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-08-10 12:28:50 -0700 |
commit | fbbbb2294680c0f57506f885971b148cae53c92d (patch) | |
tree | d2500556943fd4a63cad5752a0aa5a0caf3b329d /test/files/neg/t2442.check | |
parent | 7dd0ead39ceb7cd6f445d86f37c68b78218eef57 (diff) | |
download | scala-fbbbb2294680c0f57506f885971b148cae53c92d.tar.gz scala-fbbbb2294680c0f57506f885971b148cae53c92d.tar.bz2 scala-fbbbb2294680c0f57506f885971b148cae53c92d.zip |
Made -Xfatal-warnings less immediately fatal.
Instead of changing warnings to errors mid-stream, at the end of
a run I check for condition "no errors, some warnings, and fatal
warnings" and then generate an error at that point. This is
necessary to test for some warnings which come from later stages.
Diffstat (limited to 'test/files/neg/t2442.check')
-rw-r--r-- | test/files/neg/t2442.check | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/files/neg/t2442.check b/test/files/neg/t2442.check index 714816fd62..9ff0b44661 100644 --- a/test/files/neg/t2442.check +++ b/test/files/neg/t2442.check @@ -1,9 +1,11 @@ -t2442.scala:4: error: match may not be exhaustive. +t2442.scala:4: warning: match may not be exhaustive. It would fail on the following input: THREE def f(e: MyEnum) = e match { ^ -t2442.scala:11: error: match may not be exhaustive. +t2442.scala:11: warning: match may not be exhaustive. It would fail on the following input: BLUE def g(e: MySecondEnum) = e match { ^ -two errors found +error: No warnings can be incurred under -Xfatal-warnings. +two warnings found +one error found |