wip
This commit is contained in:
parent
a3f19c87fb
commit
54a1d9c16a
1 changed files with 5 additions and 4 deletions
|
|
@ -47,6 +47,7 @@ proc semExprWithType(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
|
||||||
#raiseRecoverableError("")
|
#raiseRecoverableError("")
|
||||||
result = errorNode(c, n)
|
result = errorNode(c, n)
|
||||||
if result.typ == nil or result.typ == enforceVoidContext:
|
if result.typ == nil or result.typ == enforceVoidContext:
|
||||||
|
if n.kind != nkStmtList:
|
||||||
# we cannot check for 'void' in macros ...
|
# we cannot check for 'void' in macros ...
|
||||||
localError(n.info, errExprXHasNoType,
|
localError(n.info, errExprXHasNoType,
|
||||||
renderTree(result, {renderNoComments}))
|
renderTree(result, {renderNoComments}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue