diff options
author | Araq <rumpf_a@web.de> | 2012-09-17 17:07:09 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-09-17 17:07:09 +0200 |
commit | b83dce728114bada9efc975de4fcb6e829781167 (patch) | |
tree | 33385e734fc9a15cacd04236cf6e057bcb253de4 /compiler/importer.nim | |
parent | c934db86adec7437e1a9b5db93864f5ff5287eed (diff) | |
download | Nim-b83dce728114bada9efc975de4fcb6e829781167.tar.gz |
bugfix: import of pure enums
Diffstat (limited to 'compiler/importer.nim')
-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): |