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,7 +1,7 @@
discard """
errormsg: "type mismatch"
file: "tconstr1.nim"
line: 25
errormsg: "type mismatch"
"""
# Test array, record constructors
@ -26,5 +26,3 @@ const
otherThings = [ # the same
(s: "hi", x: 69, y: 45, z: 0.0, chars: {'a', 'b', 'c'}),
(s: "hi", x: 69, y: 45, z: 1.0, chars: {'a'})]

View file

@ -1,5 +1,4 @@
discard """
file: "tconstr2.nim"
output: "69"
"""
# Test array, record constructors
@ -21,6 +20,3 @@ const
write(stdout, things[0].x)
#OUT 69