summary refs log tree commit diff stats
path: root/compiler/importer.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r--compiler/importer.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim
index ebb848ea7..7159072f7 100644
--- a/compiler/importer.nim
+++ b/compiler/importer.nim
@@ -157,7 +157,9 @@ proc evalFrom(c: PContext, n: PNode): PNode =
     var m = gImportModule(c.module, f)
     n.sons[0] = newSymNode(m)
     addDecl(c, m)               # add symbol to symbol table of module
-    for i in countup(1, sonsLen(n) - 1): importSymbol(c, n.sons[i], m)
+    for i in countup(1, sonsLen(n) - 1): 
+      if n.sons[i].kind != nkNilLit:
+        importSymbol(c, n.sons[i], m)
 
 proc evalImportExcept*(c: PContext, n: PNode): PNode = 
   result = n