This commit is contained in:
flywind 2021-06-22 18:44:56 +08:00 • committed by GitHub
commit 037715285c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -1295,7 +1295,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
let param = strTableGet(c.signatures, arg.name)
if param != nil: typ = param.typ
else:
localError(c.config, a.info, "parameter '$1' requires a type" % param.name.s)
localError(c.config, a.info, "parameter '$1' requires a type" % arg.name.s)
typ = errorType(c)
let lifted = liftParamType(c, kind, genericParams, typ,
arg.name.s, arg.info)