This commit is contained in:
Andreas Rumpf 2018-12-15 14:30:07 +01:00
commit b53327c92a
4 changed files with 7 additions and 3 deletions

View file

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