diff options
author | Araq <rumpf_a@web.de> | 2015-07-01 17:42:12 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-07-01 17:42:12 +0200 |
commit | b159fc3b349573114ac990f52d5c3e10684f6a91 (patch) | |
tree | 5e680db32a9359f4aece31298479f13a6dc86dd4 /tests/namedparams | |
parent | 30829ffec41dd7c4e024e506f45404f9038bb9b3 (diff) | |
download | Nim-b159fc3b349573114ac990f52d5c3e10684f6a91.tar.gz |
fixes #2993
Diffstat (limited to 'tests/namedparams')
-rw-r--r-- | tests/namedparams/tnamedparams3.nim | 10 |
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 |