diff options
author | Araq <rumpf_a@web.de> | 2014-10-22 01:54:27 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-22 01:54:27 +0200 |
commit | fa775473106c393d84f172888da9c23207c89624 (patch) | |
tree | 006523e95a7471a16332ce1714f8d8880184327d /compiler | |
parent | 95595d86a99ea44cbf1be1d2ce0e13ca5cdfb404 (diff) | |
download | Nim-fa775473106c393d84f172888da9c23207c89624.tar.gz |
fixes 'import x as y' regression
Diffstat (limited to 'compiler')
-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 9e327c8f7..58b5ef8d4 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -153,7 +153,7 @@ proc importModuleAs(n: PNode, realModule: PSym): PSym = localError(n.info, errGenerated, "module alias must be an identifier") elif n.sons[1].ident.id != realModule.name.id: # some misguided guy will write 'import abc.foo as foo' ... - result = createModuleAlias(realModule, n.sons[1].ident, n.sons[1].info) + result = createModuleAlias(realModule, n.sons[1].ident, realModule.info) proc myImportModule(c: PContext, n: PNode): PSym = var f = checkModuleName(n) |