summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-06-11 07:18:34 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-06-11 07:18:34 +0200
commit26133a33a4e61a593463fa4c62d237ab0b9ffe47 (patch)
tree5a1561d2fe7bf2421f43ba80927ef01f12b0c56c /compiler
parent61d92920956dc8ebd83017b23def63dbb4aa3c76 (diff)
downloadNim-26133a33a4e61a593463fa4c62d237ab0b9ffe47.tar.gz
make tests green properly
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semstmts.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index af853ec52..455e06e82 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1771,9 +1771,9 @@ proc semStaticStmt(c: PContext, n: PNode): PNode =
   inc c.inStaticContext
   let a = semStmt(c, n.sons[0])
   dec c.inStaticContext
+  n.sons[0] = a
+  evalStaticStmt(c.module, c.graph, a, c.p.owner)
   when false:
-    n.sons[0] = a
-    evalStaticStmt(c.module, c.graph, a, c.p.owner)
     # for incremental replays, keep the AST as required for replays:
     result = n
   else: