This commit is contained in:
Daniil Yarancev 2017-08-14 18:43:39 +03:00 • committed by Andreas Rumpf
commit 5c7ae14074
3 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,10 @@
discard """
file: "t5965_1.nim"
line: 10
errormsg: "incorrect object construction syntax"
"""
type Foo = object
a, b, c: int
discard Foo(a: 1, 2)

View file

@ -0,0 +1,10 @@
discard """
file: "t5965_2.nim"
line: 10
errormsg: "incorrect object construction syntax"
"""
type Foo = object
a: int
discard Foo(a: 1, 2)