parent
fc7fe636e2
commit
7ef85db9a9
3 changed files with 60 additions and 3 deletions
|
|
@ -2363,7 +2363,7 @@ proc matchesAux(c: PContext, n, nOrig: PNode,
|
|||
localError(c.config, n.sons[a].info, "named parameter has to be an identifier")
|
||||
noMatch()
|
||||
return
|
||||
formal = getSymFromList(m.callee.n, n.sons[a].sons[0].ident, 1)
|
||||
formal = getNamedParamFromList(m.callee.n, n.sons[a].sons[0].ident)
|
||||
if formal == nil:
|
||||
# no error message!
|
||||
noMatch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue