improve the 'has to be discarded' error message

This commit is contained in:
Araq 2020-05-02 14:37:16 +02:00 • committed by Andreas Rumpf
commit 7f1d2489ad
5 changed files with 6 additions and 6 deletions

View file

@ -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
"""

View file

@ -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
"""

View file

@ -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
"""