diff options
author | Araq <rumpf_a@web.de> | 2016-08-27 13:38:39 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-08-27 13:38:39 +0200 |
commit | 68e30d7d52d84578fbe0f6f1c2041b150251e800 (patch) | |
tree | 6dfb38147f00b940543a96b97c093053809ec7af /compiler/importer.nim | |
parent | 7630cd076bbdb9c3b1b851ffc6dc6a8ada07f4a6 (diff) | |
download | Nim-68e30d7d52d84578fbe0f6f1c2041b150251e800.tar.gz |
tester cleanup; enable some rod tests
Diffstat (limited to 'compiler/importer.nim')
-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 dd2c4d954..7e7130b85 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -163,7 +163,7 @@ proc myImportModule(c: PContext, n: PNode): PSym = var f = checkModuleName(n) if f != InvalidFileIDX: result = importModuleAs(n, gImportModule(c.module, f)) - if result.info.fileIndex == n.info.fileIndex: + if result.info.fileIndex == c.module.info.fileIndex: localError(n.info, errGenerated, "A module cannot import itself") if sfDeprecated in result.flags: message(n.info, warnDeprecated, result.name.s) |