This commit is contained in:
flywind 2021-04-25 01:33:29 +08:00 • committed by GitHub
commit 6e8f0f8cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -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: