fixes existing tests

This commit is contained in:
ringabout
2023-03-23 21:08:35 +08:00
parent cae539996a
commit 0175be50a9
3 changed files with 78 additions and 16 deletions

View File

@@ -1,15 +1,3 @@
discard """
cmd: "nim check $file"
errormsg: ""
nimout: '''
t17437.nim(20, 16) Error: undeclared identifier: 'x'
t17437.nim(20, 16) Error: expression 'x' has no type (or is ambiguous)
t17437.nim(20, 19) Error: incorrect object construction syntax
t17437.nim(20, 19) Error: incorrect object construction syntax
t17437.nim(20, 12) Error: expression '' has no type (or is ambiguous)
'''
"""
# bug #17437 invalid object construction should result in error
type
@@ -17,6 +5,8 @@ type
x, y: int
proc m =
var x = 12
var y = 1
var v = V(x: x, y)
m()