This commit is contained in:
Andreas Rumpf 2019-09-02 15:47:56 +02:00 • committed by GitHub
commit 7ef85db9a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 3 deletions

View file

@ -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()