made some tests green

This commit is contained in:
Araq 2013-05-19 17:06:11 +02:00
commit 7b36d3d6ff
6 changed files with 8 additions and 6 deletions

View file

@ -40,7 +40,8 @@ proc semExprWithType(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
# do not produce another redundant error message:
#raiseRecoverableError("")
result = errorNode(c, n)
if isEmptyType(result.typ):
if result.typ == nil:
# we cannot check for 'void' in macros ...
LocalError(n.info, errExprXHasNoType,
renderTree(result, {renderNoComments}))
result.typ = errorType(c)