diff options
-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 |