fixes #2993
This commit is contained in:
parent
30829ffec4
commit
b159fc3b34
2 changed files with 12 additions and 6 deletions
10
tests/namedparams/tnamedparams3.nim
Normal file
10
tests/namedparams/tnamedparams3.nim
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue