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/specialized | |
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/specialized')
-rw-r--r-- | test/files/specialized/tb3651.check | 2 | ||||
-rw-r--r-- | test/files/specialized/tc3651.check | 2 | ||||
-rw-r--r-- | test/files/specialized/td3651.check | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/files/specialized/tb3651.check b/test/files/specialized/tb3651.check index 8a3f686ef5..8e104f13ff 100644 --- a/test/files/specialized/tb3651.check +++ b/test/files/specialized/tb3651.check @@ -1,4 +1,4 @@ -tb3651.scala:8: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +tb3651.scala:8: warning: a pure expression does nothing in statement position; multiline expressions might require enclosing parentheses lk.a ^ 0 diff --git a/test/files/specialized/tc3651.check b/test/files/specialized/tc3651.check index e2dbadf22c..1e56d196fd 100644 --- a/test/files/specialized/tc3651.check +++ b/test/files/specialized/tc3651.check @@ -1,4 +1,4 @@ -tc3651.scala:12: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +tc3651.scala:12: warning: a pure expression does nothing in statement position; multiline expressions might require enclosing parentheses lk.a ^ 0 diff --git a/test/files/specialized/td3651.check b/test/files/specialized/td3651.check index 1a709fd0a7..697443ffe9 100644 --- a/test/files/specialized/td3651.check +++ b/test/files/specialized/td3651.check @@ -1,7 +1,7 @@ -td3651.scala:12: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +td3651.scala:12: warning: a pure expression does nothing in statement position; multiline expressions might require enclosing parentheses b.a ^ -td3651.scala:16: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses +td3651.scala:16: warning: a pure expression does nothing in statement position; multiline expressions might require enclosing parentheses der.a ^ 0 |