require errormsg to be specified before file.

This commit is contained in:
Arne Döring 2018-11-29 16:07:51 +01:00 • committed by Araq
commit 1105d03644
264 changed files with 305 additions and 623 deletions

View file

@ -1,8 +1,7 @@
discard """
errormsg: "type mismatch"
file: "tconsttypemismatch.nim"
line: 7
errormsg: "type mismatch"
"""
# bug #2252
const foo: int = 1000 / 30

View file

@ -1,7 +1,7 @@
discard """
errormsg: "Expected a node of kind nnkCharLit, got nnkCommand"
file: "tmacroerrorproc.nim"
line: 13
errormsg: "Expected a node of kind nnkCharLit, got nnkCommand"
"""
# issue #4915
import macros