diff options
author | Daniil Yarancev <TiberiumN@users.noreply.github.com> | 2017-08-14 18:43:39 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-14 17:43:39 +0200 |
commit | 5c7ae1407425d8a595ea8841b669e30e61e29307 (patch) | |
tree | e5aed6161f4755369b213d3b83913ef94facd305 /tests/constructors/t5965_1.nim | |
parent | b6360c5d5f19fd1e8c74fda703a465b8e46dbb63 (diff) | |
download | Nim-5c7ae1407425d8a595ea8841b669e30e61e29307.tar.gz |
Fixes #5965 (#6237)
Diffstat (limited to 'tests/constructors/t5965_1.nim')
-rw-r--r-- | tests/constructors/t5965_1.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/constructors/t5965_1.nim b/tests/constructors/t5965_1.nim new file mode 100644 index 000000000..9f947f859 --- /dev/null +++ b/tests/constructors/t5965_1.nim @@ -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) |