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