summary refs log tree commit diff stats
path: root/tests/namedparams/tnamedparams3.nim
blob: d9c79bf980b68bf0a3d2f31895287cdf014f59c0 (plain) (blame)
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