summary refs log tree commit diff stats
path: root/tests/constructors/t5965_1.nim
diff options
context:
space:
mode:
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)