summary refs log tree commit diff stats
path: root/tests/namedparams
diff options
context:
space:
mode:
Diffstat (limited to 'tests/namedparams')
-rw-r--r--tests/namedparams/tnamedparams3.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/namedparams/tnamedparams3.nim b/tests/namedparams/tnamedparams3.nim
new file mode 100644
index 000000000..d9c79bf98
--- /dev/null
+++ b/tests/namedparams/tnamedparams3.nim
@@ -0,0 +1,10 @@
+discard """
+  errormsg: "type mismatch: got (int literal(5), b: bool)"
+  line: 10
+"""
+
+# bug #2993
+proc test(i: int, a, b: bool) = discard
+#test(5, b = false)             #Missing param a
+
+5.test(b = false)             #Missing param a