summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHans Raaf <hara@oderwat.de>2015-03-07 00:27:42 +0100
committerHans Raaf <hara@oderwat.de>2015-03-07 00:27:42 +0100
commitb85da579b3b84550a57408ae43e48744ec39683a (patch)
treea1d69e5f24990adfabfcc93a27fb612b64009f28
parent2c0dfcb302b20674da7a6be1752c4b3db6ffb60d (diff)
downloadNim-b85da579b3b84550a57408ae43e48744ec39683a.tar.gz
Fixing import path support inconsitency.
-rw-r--r--compiler/importer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim
index fbf3be4f2..57a1e542b 100644
--- a/compiler/importer.nim
+++ b/compiler/importer.nim
@@ -27,7 +27,7 @@ proc getModuleName*(n: PNode): string =
     result = n.ident.s
   of nkSym:
     result = n.sym.name.s
-  of nkInfix:
+  of nkInfix, nkPrefix:
     if n.sons[0].kind == nkIdent and n.sons[0].ident.id == getIdent("as").id:
       # XXX hack ahead:
       n.kind = nkImportAs