Error message minor (#18021)
* Update compiler/semtypes.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
9f7e2e3057
commit
e12597589f
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ const
|
||||||
warnFieldXNotSupported: "field '$1' not supported",
|
warnFieldXNotSupported: "field '$1' not supported",
|
||||||
warnRstStyle: "RST style: $1",
|
warnRstStyle: "RST style: $1",
|
||||||
warnCommentXIgnored: "comment '$1' ignored",
|
warnCommentXIgnored: "comment '$1' ignored",
|
||||||
warnTypelessParam: "'$1' has no type. Typeless parameters are deprecated; only allowed for 'template'",
|
warnTypelessParam: "", # deadcode
|
||||||
warnUseBase: "use {.base.} for base methods; baseless methods are deprecated",
|
warnUseBase: "use {.base.} for base methods; baseless methods are deprecated",
|
||||||
warnWriteToForeignHeap: "write to foreign heap",
|
warnWriteToForeignHeap: "write to foreign heap",
|
||||||
warnUnsafeCode: "unsafe code: '$1'",
|
warnUnsafeCode: "unsafe code: '$1'",
|
||||||
|
|
|
||||||
|
|
@ -1297,7 +1297,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
|
||||||
let param = strTableGet(c.signatures, arg.name)
|
let param = strTableGet(c.signatures, arg.name)
|
||||||
if param != nil: typ = param.typ
|
if param != nil: typ = param.typ
|
||||||
else:
|
else:
|
||||||
localError(c.config, a.info, "typeless parameters are obsolete")
|
localError(c.config, a.info, "parameter '$1' requires a type" % param.name.s)
|
||||||
typ = errorType(c)
|
typ = errorType(c)
|
||||||
let lifted = liftParamType(c, kind, genericParams, typ,
|
let lifted = liftParamType(c, kind, genericParams, typ,
|
||||||
arg.name.s, arg.info)
|
arg.name.s, arg.info)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue