remove the restriction that module names need to be unique per Nimble… (#11064)

* remove the restriction that module names need to be unique per Nimble package

* make tests green again

* use the 'response' linker file also on Unix in order to fix megatest
This commit is contained in:
Andreas Rumpf 2019-04-20 15:19:02 +02:00 • committed by GitHub
commit 0121dda9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 47 additions and 23 deletions

View file

@ -0,0 +1 @@
proc flat*() = echo "flat"

View file

@ -1,7 +1,10 @@
discard """
errormsg: "module names need to be unique per Nimble package"
file: "tnotuniquename/mnotuniquename.nim"
output: '''nested
flat'''
"""
import mnotuniquename
import tnotuniquename/mnotuniquename as nun
import tnotuniquename_dir/mnotuniquename as nun
nested()
flat()

View file

@ -1,6 +1,7 @@
discard """
errormsg: "module names need to be unique per Nimble package"
file: "tnotuniquename/mnotuniquename.nim"
disabled: "true"
"""
import mnotuniquename

View file

@ -0,0 +1,2 @@
proc nested*() = echo "nested"