From b53327c92a1c685ab71917cabedbf441f7f5fd2d Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 15 Dec 2018 14:30:07 +0100 Subject: fixes #9994 --- compiler/passes.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0