summary refs log blame commit diff stats
path: root/tests/namedparams/tnamedparams3.nim
blob: e736c338c2c451b1c54c9930e01e040595c0b6b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
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