From 2b9311e9f185c5cb95a7ce70035efce63b4e6d89 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 14 Feb 2014 23:47:06 +0100 Subject: fixes #584 --- compiler/transf.nim | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/transf.nim') diff --git a/compiler/transf.nim b/compiler/transf.nim index deb821eff..0911950d0 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -754,6 +754,7 @@ proc transformStmt*(module: PSym, n: PNode): PNode = result = processTransf(c, n, module) result = liftLambdasForTopLevel(module, result) incl(result.flags, nfTransf) + when useEffectSystem: trackTopLevelStmt(module, result) proc transformExpr*(module: PSym, n: PNode): PNode = if nfTransf in n.flags: -- cgit 1.4.1-2-gfad0