From b85da579b3b84550a57408ae43e48744ec39683a Mon Sep 17 00:00:00 2001 From: Hans Raaf Date: Sat, 7 Mar 2015 00:27:42 +0100 Subject: [PATCH] Fixing import path support inconsitency. --- compiler/importer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/importer.nim b/compiler/importer.nim index fbf3be4f26..57a1e542b1 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