summaryrefslogtreecommitdiff
path: root/test/files/neg/unit-returns-value.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/unit-returns-value.check')
-rw-r--r--test/files/neg/unit-returns-value.check5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/unit-returns-value.check b/test/files/neg/unit-returns-value.check
index 18368f45ab..ab458a350b 100644
--- a/test/files/neg/unit-returns-value.check
+++ b/test/files/neg/unit-returns-value.check
@@ -1,4 +1,7 @@
+unit-returns-value.scala:4: error: a pure expression does nothing in statement position; you may be omitting necessary parentheses
+ if (b) return 5
+ ^
unit-returns-value.scala:4: error: enclosing method f has result type Unit: return value discarded
if (b) return 5
^
-one error found
+two errors found