update tests that tested for the 'discard' error messages

This commit is contained in:
Araq 2020-05-02 21:16:08 +02:00 • committed by Andreas Rumpf
commit ff1c0bae4c
5 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "expression 'result[1 .. BackwardsIndex(1)]' is of type 'string' and has to be discarded" errormsg: "expression 'result[1 .. BackwardsIndex(1)]' is of type 'string' and has to be used (or discarded)"
line: 10 line: 10
""" """

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "expression '5' is of type 'int literal(5)' and has to be discarded" errormsg: "expression '5' is of type 'int literal(5)' and has to be used (or discarded)"
file: "tstmtexp.nim" file: "tstmtexp.nim"
line: 8 line: 8
""" """

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "expression '123' is of type 'int literal(123)' and has to be discarded" errormsg: "expression '123' is of type 'int literal(123)' and has to be used (or discarded)"
line: 71 line: 71
""" """

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "has to be discarded" errormsg: "has to be used (or discarded)"
line: 7 line: 7
""" """

View file

@ -1,5 +1,5 @@
discard """ discard """
errormsg: "has to be discarded" errormsg: "has to be used (or discarded)"
line: 27 line: 27
""" """