diff options
Diffstat (limited to 'tests/exprs')
-rw-r--r-- | tests/exprs/texprstmt.nim | 2 | ||||
-rw-r--r-- | tests/exprs/tstmtexp.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/exprs/texprstmt.nim b/tests/exprs/texprstmt.nim index 79323d82a..0e92702e8 100644 --- a/tests/exprs/texprstmt.nim +++ b/tests/exprs/texprstmt.nim @@ -1,6 +1,6 @@ discard """ line: 10 - errormsg: "value of type 'string' has to be discarded" + errormsg: "expression 'result[1 .. -(len(result), 1)]' is of type 'string' and has to be discarded" """ # bug #578 diff --git a/tests/exprs/tstmtexp.nim b/tests/exprs/tstmtexp.nim index fe60dd3ba..0fb835bc6 100644 --- a/tests/exprs/tstmtexp.nim +++ b/tests/exprs/tstmtexp.nim @@ -1,7 +1,7 @@ discard """ file: "tstmtexp.nim" line: 8 - errormsg: "value of type 'int literal(5)' has to be discarded" + errormsg: "expression '5' is of type 'int literal(5)' and has to be discarded" """ # Test 3 |