From b83dce728114bada9efc975de4fcb6e829781167 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 17 Sep 2012 17:07:09 +0200 Subject: [PATCH] bugfix: import of pure enums --- compiler/importer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/importer.nim b/compiler/importer.nim index aa6722a328..f963779154 100755 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -53,7 +53,7 @@ proc rawImportSymbol(c: PContext, s: PSym) = StrTableAdd(c.tab.stack[importTablePos], copy) if s.kind == skType: var etyp = s.typ - if etyp.kind in {tyBool, tyEnum}: + if etyp.kind in {tyBool, tyEnum} and sfPure notin s.flags: for j in countup(0, sonsLen(etyp.n) - 1): var e = etyp.n.sons[j].sym if (e.Kind != skEnumField):