summary refs log tree commit diff stats
path: root/tests/constructors/t5965_2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/constructors/t5965_2.nim')
-rw-r--r--tests/constructors/t5965_2.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/constructors/t5965_2.nim b/tests/constructors/t5965_2.nim
new file mode 100644
index 000000000..e04f1b715
--- /dev/null
+++ b/tests/constructors/t5965_2.nim
@@ -0,0 +1,10 @@
+discard """
+  errormsg: "incorrect object construction syntax"
+  file: "t5965_2.nim"
+  line: 10
+"""
+
+type Foo = object
+  a: int
+
+discard Foo(a: 1, 2)