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:
parent
44ec66bd48
commit
0121dda9ba
9 changed files with 47 additions and 23 deletions
|
|
@ -0,0 +1 @@
|
|||
proc flat*() = echo "flat"
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
discard """
|
||||
errormsg: "module names need to be unique per Nimble package"
|
||||
file: "tnotuniquename/mnotuniquename.nim"
|
||||
disabled: "true"
|
||||
"""
|
||||
|
||||
import mnotuniquename
|
||||
|
|
|
|||
2
tests/modules/tnotuniquename_dir/mnotuniquename.nim
Normal file
2
tests/modules/tnotuniquename_dir/mnotuniquename.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
proc nested*() = echo "nested"
|
||||
Loading…
Add table
Add a link
Reference in a new issue