mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
fixes #9978
This commit is contained in:
@@ -155,7 +155,7 @@ proc processModule*(graph: ModuleGraph; module: PSym, stream: PLLStream): bool {
|
||||
while true:
|
||||
openParsers(p, fileIdx, s, graph.cache, graph.config)
|
||||
|
||||
if sfSystemModule notin module.flags:
|
||||
if graph.config.mainPackageId == module.owner.id:
|
||||
# XXX what about caching? no processing then? what if I change the
|
||||
# modules to include between compilation runs? we'd need to track that
|
||||
# in ROD files. I think we should enable this feature only
|
||||
|
||||
8
tests/modules/timport_in_config.nim
Normal file
8
tests/modules/timport_in_config.nim
Normal file
@@ -0,0 +1,8 @@
|
||||
discard """
|
||||
output: '''hallo'''
|
||||
joinable: false
|
||||
"""
|
||||
|
||||
# bug #9978
|
||||
|
||||
echo "hi".replace("i", "allo")
|
||||
1
tests/modules/timport_in_config.nim.cfg
Normal file
1
tests/modules/timport_in_config.nim.cfg
Normal file
@@ -0,0 +1 @@
|
||||
--import: "strutils"
|
||||
Reference in New Issue
Block a user