the compiler can now deal with multiple modules of the same name
This commit is contained in:
parent
c085a1b4f0
commit
a0b82db402
13 changed files with 74 additions and 18 deletions
16
tests/manyloc/packages/noconflicts.nim
Normal file
16
tests/manyloc/packages/noconflicts.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
output: '''package1/strutils
|
||||
package2/strutils
|
||||
noconflicts
|
||||
new os.nim'''
|
||||
"""
|
||||
|
||||
import package1/strutils as su1
|
||||
import package2.strutils as su2
|
||||
|
||||
import os
|
||||
|
||||
su1.foo()
|
||||
su2.foo()
|
||||
echo "noconflicts"
|
||||
yay()
|
||||
Loading…
Add table
Add a link
Reference in a new issue