summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-25 19:26:38 +0100
committerGitHub <noreply@github.com>2019-03-25 19:26:38 +0100
commit8e1c6e2e2d2f1a0835ecc37631cd2129c8df57c0 (patch)
tree30bd605b1254b8935a9f8f1d358a9bd690ed4e82 /compiler
parent663b1f2c9665809f914e618ceaecaf4088d957f9 (diff)
downloadNim-8e1c6e2e2d2f1a0835ecc37631cd2129c8df57c0.tar.gz
fixes #10896 (#10903)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser.nim4
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 =