diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-15 14:30:07 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-15 14:30:21 +0100 |
commit | b53327c92a1c685ab71917cabedbf441f7f5fd2d (patch) | |
tree | f66f1bc9882bccfdb3939987d9a51602bf233665 /compiler | |
parent | 50193b95eaa48e87b7f20f6d2803699cb73821d6 (diff) | |
download | Nim-b53327c92a1c685ab71917cabedbf441f7f5fd2d.tar.gz |
fixes #9994
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/passes.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/passes.nim b/compiler/passes.nim index 6863576cd..d9a8fb1a7 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -102,9 +102,9 @@ proc processImplicits(graph: ModuleGraph; implicits: seq[string], nodeKind: TNod for module in items(implicits): # implicit imports should not lead to a module importing itself if m.position != resolveMod(graph.config, module, relativeTo).int32: - var importStmt = newNodeI(nodeKind, gCmdLineInfo) + var importStmt = newNodeI(nodeKind, m.info) var str = newStrNode(nkStrLit, module) - str.info = gCmdLineInfo + str.info = m.info importStmt.addSon str if not processTopLevelStmt(graph, importStmt, a): break |