Merge pull request #2284 from oderwat/fix-importer

Fixing import path support inconsitency.
This commit is contained in:
Andreas Rumpf 2015-03-07 01:50:33 +01:00
commit d8ad078f6c

View file

@ -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