diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 95ec5f765..7e934111a 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -2086,7 +2086,9 @@ proc parseConstant(p: var TParser): PNode = addSon(result, p.emptyNode) eat(p, tkEquals) optInd(p, result) - addSon(result, parseStmtListExpr(p)) + #addSon(result, parseStmtListExpr(p)) + addSon(result, parseExpr(p)) + result[^1] = postExprBlocks(p, result[^1]) indAndComment(p, result) proc parseBind(p: var TParser, k: TNodeKind): PNode = |