mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-30 12:17:56 +00:00
compiler: better error messages (#5613)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user