This commit is contained in:
Andreas Rumpf
2018-12-15 14:30:07 +01:00
parent 50193b95ea
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

View File

@@ -0,0 +1,2 @@
type
DefinedInB* = int

View File

@@ -3,6 +3,7 @@ output: '''hallo'''
joinable: false
"""
# bug #9978
# bug #9978, #9994
var x: DefinedInB
echo "hi".replace("i", "allo")

View File

@@ -1 +1,2 @@
--import: "strutils"
--import: "mimport_in_config"