diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-08-14 22:08:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-14 22:08:32 -0700 |
commit | 99f8b285e5533c95b7e80bdf670f594b01328f70 (patch) | |
tree | 937af91b52432da2d00cb8b3367dfe2c23014d4a /test/files/run/patmatnew.check | |
parent | 391d954fc112f8aea55b471f82e40b888983ca95 (diff) | |
parent | f805cf526abb4343990ed31db6c63436d6fe4fde (diff) | |
download | scala-99f8b285e5533c95b7e80bdf670f594b01328f70.tar.gz scala-99f8b285e5533c95b7e80bdf670f594b01328f70.tar.bz2 scala-99f8b285e5533c95b7e80bdf670f594b01328f70.zip |
Merge pull request #5266 from som-snytt/issue/9847
SI-9847 Nuance pure expr statement warning
Diffstat (limited to 'test/files/run/patmatnew.check')
-rw-r--r-- | test/files/run/patmatnew.check | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/files/run/patmatnew.check b/test/files/run/patmatnew.check index 56b8ac2f4f..117bc28c2d 100644 --- a/test/files/run/patmatnew.check +++ b/test/files/run/patmatnew.check @@ -1,10 +1,16 @@ -patmatnew.scala:351: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +patmatnew.scala:351: warning: a pure expression does nothing in statement position case 1 => "OK" ^ -patmatnew.scala:352: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +patmatnew.scala:352: warning: a pure expression does nothing in statement position case 2 => assert(false); "KO" ^ -patmatnew.scala:353: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +patmatnew.scala:352: warning: multiline expressions might require enclosing parentheses; a value can be silently discarded when Unit is expected + case 2 => assert(false); "KO" + ^ +patmatnew.scala:353: warning: a pure expression does nothing in statement position + case 3 => assert(false); "KO" + ^ +patmatnew.scala:353: warning: multiline expressions might require enclosing parentheses; a value can be silently discarded when Unit is expected case 3 => assert(false); "KO" ^ patmatnew.scala:670: warning: This catches all Throwables. If this is really intended, use `case e : Throwable` to clear this warning. |