mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 19:23:57 +00:00
committed by
Andreas Rumpf
parent
b6360c5d5f
commit
5c7ae14074
10
tests/constructors/t5965_1.nim
Normal file
10
tests/constructors/t5965_1.nim
Normal 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)
|
||||
10
tests/constructors/t5965_2.nim
Normal file
10
tests/constructors/t5965_2.nim
Normal 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)
|
||||
Reference in New Issue
Block a user