diff options
author | Hans Raaf <hara@oderwat.de> | 2015-03-07 00:27:42 +0100 |
---|---|---|
committer | Hans Raaf <hara@oderwat.de> | 2015-03-07 00:27:42 +0100 |
commit | b85da579b3b84550a57408ae43e48744ec39683a (patch) | |
tree | a1d69e5f24990adfabfcc93a27fb612b64009f28 | |
parent | 2c0dfcb302b20674da7a6be1752c4b3db6ffb60d (diff) | |
download | Nim-b85da579b3b84550a57408ae43e48744ec39683a.tar.gz |
Fixing import path support inconsitency.
-rw-r--r-- | compiler/importer.nim | 2 |
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 |