summaryrefslogtreecommitdiff
path: root/test/files/run/t4047.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-07-06 16:00:06 -0700
committerSom Snytt <som.snytt@gmail.com>2016-07-08 08:52:10 -0700
commitf805cf526abb4343990ed31db6c63436d6fe4fde (patch)
treedbc4894e782492fe5074daeb298144eeeb8832ba /test/files/run/t4047.check
parent27a4f4d6b2c00df778a1da60fefc0f8f6a77edce (diff)
downloadscala-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/run/t4047.check')
-rw-r--r--test/files/run/t4047.check8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/t4047.check b/test/files/run/t4047.check
index 3c41e6e244..c31f2f0858 100644
--- a/test/files/run/t4047.check
+++ b/test/files/run/t4047.check
@@ -1,13 +1,13 @@
-t4047.scala:23: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+t4047.scala:23: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses
a.foo
^
-t4047.scala:24: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+t4047.scala:24: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses
a.foo
^
-t4047.scala:26: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+t4047.scala:26: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses
b.foo
^
-t4047.scala:27: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+t4047.scala:27: warning: a pure expression does nothing in statement position; multiline expressions may require enclosing parentheses
b.foo
^
Unit: called A.foo