fixes #12420 [backport] (#12456)

This commit is contained in:
Andreas Rumpf 2019-10-18 22:13:24 +02:00 • committed by GitHub
commit 832b0a0232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 8 deletions

View file

@ -47,9 +47,6 @@ proc demanglePackageName*(path: string): string =
proc withPackageName*(conf: ConfigRef; path: AbsoluteFile): AbsoluteFile =
let x = getPackageName(conf, path.string)
if x.len == 0:
result = path
else:
let (p, file, ext) = path.splitFile
if x == "stdlib":
# Hot code reloading now relies on 'stdlib_system' names etc.

View file

@ -0,0 +1,2 @@
proc burnMem*(a: int) =
discard

View file

@ -0,0 +1,2 @@
# module b/utils.nim
let x* = 10

View file

@ -0,0 +1,5 @@
import a/utils as autils, b/utils
# bug #12420
burnMem(x)