diff options
-rwxr-xr-x | compiler/importer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index aa6722a32..f96377915 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): |