add colon (#17834)
This commit is contained in:
parent
b667e288e2
commit
6e8f0f8cfc
6 changed files with 6 additions and 6 deletions
|
|
@ -824,7 +824,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int,
|
|||
makeExternExport(c, sym, getOptionalStr(c, it, "$1"), it.info)
|
||||
if k == wExportCpp:
|
||||
if c.config.backend != backendCpp:
|
||||
localError(c.config, it.info, "exportcpp requires `cpp` backend, got " & $c.config.backend)
|
||||
localError(c.config, it.info, "exportcpp requires `cpp` backend, got: " & $c.config.backend)
|
||||
else:
|
||||
incl(sym.flags, sfMangleCpp)
|
||||
incl(sym.flags, sfUsed) # avoid wrong hints
|
||||
|
|
|
|||
|
|
@ -2291,7 +2291,7 @@ proc semMagic(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
|
|||
result[i] = semExpr(c, n[i])
|
||||
|
||||
if n.len > 1 and n[1].kind notin nkCallKinds:
|
||||
return localErrorNode(c, n, n[1].info, "'spawn' takes a call expression; got " & $n[1])
|
||||
return localErrorNode(c, n, n[1].info, "'spawn' takes a call expression; got: " & $n[1])
|
||||
|
||||
let typ = result[^1].typ
|
||||
if not typ.isEmptyType:
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ proc wrapProcForSpawn*(g: ModuleGraph; idgen: IdGenerator; owner: PSym; spawnExp
|
|||
result = newNodeI(nkStmtList, n.info)
|
||||
|
||||
if n.kind notin nkCallKinds:
|
||||
localError(g.config, n.info, "'spawn' takes a call expression; got " & $n)
|
||||
localError(g.config, n.info, "'spawn' takes a call expression; got: " & $n)
|
||||
return
|
||||
if optThreadAnalysis in g.config.globalOptions:
|
||||
if {tfThread, tfNoSideEffect} * n[0].typ.flags == {}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue