diff options
author | Araq <rumpf_a@web.de> | 2016-12-18 23:20:22 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-12-18 23:20:22 +0100 |
commit | 3e5e18bc5d3391cc9bb7fe5e0a4856dad09cbd71 (patch) | |
tree | 7fabbca2c07d4925fc6a44ecadc3cebf9b5945be /compiler/evaltempl.nim | |
parent | 39ca8b8c8e55033d79b848be519fc4a8d34b337e (diff) | |
download | Nim-3e5e18bc5d3391cc9bb7fe5e0a4856dad09cbd71.tar.gz |
make tests green again
Diffstat (limited to 'compiler/evaltempl.nim')
-rw-r--r-- | compiler/evaltempl.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evaltempl.nim b/compiler/evaltempl.nim index 59f04ca84..87745f7ed 100644 --- a/compiler/evaltempl.nim +++ b/compiler/evaltempl.nim @@ -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 |