require errormsg to be specified before file.
This commit is contained in:
parent
ca394ebd95
commit
1105d03644
264 changed files with 305 additions and 623 deletions
|
|
@ -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'})]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue