summary refs log tree commit diff stats
path: root/tests/constructors/t5965_1.nim
diff options
context:
space:
mode:
authorDaniil Yarancev <TiberiumN@users.noreply.github.com>2017-08-14 18:43:39 +0300
committerAndreas Rumpf <rumpf_a@web.de>2017-08-14 17:43:39 +0200
commit5c7ae1407425d8a595ea8841b669e30e61e29307 (patch)
treee5aed6161f4755369b213d3b83913ef94facd305 /tests/constructors/t5965_1.nim
parentb6360c5d5f19fd1e8c74fda703a465b8e46dbb63 (diff)
downloadNim-5c7ae1407425d8a595ea8841b669e30e61e29307.tar.gz
Fixes #5965 (#6237)
Diffstat (limited to 'tests/constructors/t5965_1.nim')
-rw-r--r--tests/constructors/t5965_1.nim10
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)