make tests green again

This commit is contained in:
Araq
2016-12-18 23:20:22 +01:00
parent 39ca8b8c8e
commit 3e5e18bc5d

View File

@@ -108,7 +108,7 @@ proc wrapInComesFrom*(info: TLineInfo; res: PNode): PNode =
when true:
result = res
result.info = info
if result.kind in {nkStmtList, nkStmtListExpr}:
if result.kind in {nkStmtList, nkStmtListExpr} and result.len > 0:
result.lastSon.info = info
when false:
# this hack is required to