From 26133a33a4e61a593463fa4c62d237ab0b9ffe47 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 11 Jun 2018 07:18:34 +0200 Subject: make tests green properly --- compiler/semstmts.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler') 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: -- cgit 1.4.1-2-gfad0