diff options
author | Som Snytt <som.snytt@gmail.com> | 2016-07-06 16:00:06 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2016-07-08 08:52:10 -0700 |
commit | f805cf526abb4343990ed31db6c63436d6fe4fde (patch) | |
tree | dbc4894e782492fe5074daeb298144eeeb8832ba /test/files/neg/macro-invalidret.check | |
parent | 27a4f4d6b2c00df778a1da60fefc0f8f6a77edce (diff) | |
download | scala-f805cf526abb4343990ed31db6c63436d6fe4fde.tar.gz scala-f805cf526abb4343990ed31db6c63436d6fe4fde.tar.bz2 scala-f805cf526abb4343990ed31db6c63436d6fe4fde.zip |
SI-9847 Nuance pure expr statement warning
Clarify the current warning, which means that an expression
split over multiple lines may not be parsed as naively expected.
When typing a block, attempt minor nuance. For instance, a
single expression is not in need of parens. Try to avoid
duplicate warnings for expressions that were adapted away
from result position.
Diffstat (limited to 'test/files/neg/macro-invalidret.check')
-rw-r--r-- | test/files/neg/macro-invalidret.check | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/macro-invalidret.check b/test/files/neg/macro-invalidret.check index ebdc8ec7da..a4d4fc6f34 100644 --- a/test/files/neg/macro-invalidret.check +++ b/test/files/neg/macro-invalidret.check @@ -27,7 +27,7 @@ java.lang.NullPointerException Macros_Test_2.scala:15: error: macro implementation is missing foo4 ^ -Macros_Test_2.scala:17: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +Macros_Test_2.scala:17: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses foo6 ^ two warnings found |