diff options
author | Araq <rumpf_a@web.de> | 2020-05-02 14:37:16 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-05-02 22:31:19 +0200 |
commit | 7f1d2489ad79d09c649e37b6d2db12f5fdbd86d7 (patch) | |
tree | c6adec18eb5f866442e5e0ce8df13a7644adcd94 /tests/discard | |
parent | 87ac28d19ac9740d871ac85a8c79178344c6b7b3 (diff) | |
download | Nim-7f1d2489ad79d09c649e37b6d2db12f5fdbd86d7.tar.gz |
improve the 'has to be discarded' error message
Diffstat (limited to 'tests/discard')
-rw-r--r-- | tests/discard/tneedsdiscard.nim | 2 | ||||
-rw-r--r-- | tests/discard/tneedsdiscard_in_for.nim | 2 | ||||
-rw-r--r-- | tests/discard/tvoidcontext.nim | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/discard/tneedsdiscard.nim b/tests/discard/tneedsdiscard.nim index d9483947f..75cd9d2df 100644 --- a/tests/discard/tneedsdiscard.nim +++ b/tests/discard/tneedsdiscard.nim @@ -1,5 +1,5 @@ discard """ - errormsg: '''expression 'open(f, "arg.txt", fmRead, -1)' is of type 'bool' and has to be discarded; start of expression here: tneedsdiscard.nim(7, 3)''' + errormsg: '''expression 'open(f, "arg.txt", fmRead, -1)' is of type 'bool' and has to be used (or discarded); start of expression here: tneedsdiscard.nim(7, 3)''' line: 10 """ diff --git a/tests/discard/tneedsdiscard_in_for.nim b/tests/discard/tneedsdiscard_in_for.nim index ab5216150..7685bd577 100644 --- a/tests/discard/tneedsdiscard_in_for.nim +++ b/tests/discard/tneedsdiscard_in_for.nim @@ -1,5 +1,5 @@ discard """ - errormsg: '''expression 'premultiply(app.gradient[i])' is of type 'Rgba8' and has to be discarded''' + errormsg: '''expression 'premultiply(app.gradient[i])' is of type 'Rgba8' and has to be used (or discarded)''' line: 22 """ diff --git a/tests/discard/tvoidcontext.nim b/tests/discard/tvoidcontext.nim index 25e0d4fdf..9e2b913ad 100644 --- a/tests/discard/tvoidcontext.nim +++ b/tests/discard/tvoidcontext.nim @@ -1,5 +1,5 @@ discard """ - errormsg: '''expression '"invalid"' is of type 'string' and has to be discarded''' + errormsg: '''expression '"invalid"' is of type 'string' and has to be used (or discarded)''' line: 12 """ |