summary refs log tree commit diff stats
path: root/compiler/importer.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-17 17:07:09 +0200
committerAraq <rumpf_a@web.de>2012-09-17 17:07:09 +0200
commitb83dce728114bada9efc975de4fcb6e829781167 (patch)
tree33385e734fc9a15cacd04236cf6e057bcb253de4 /compiler/importer.nim
parentc934db86adec7437e1a9b5db93864f5ff5287eed (diff)
downloadNim-b83dce728114bada9efc975de4fcb6e829781167.tar.gz
bugfix: import of pure enums
Diffstat (limited to 'compiler/importer.nim')
-rwxr-xr-xcompiler/importer.nim2
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):