mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 13:34:46 +00:00
* fixes #21496; Ambiguous calls compiles when module name are equal * add a test case
This commit is contained in:
1
tests/import/buzz/m21496.nim
Normal file
1
tests/import/buzz/m21496.nim
Normal file
@@ -0,0 +1 @@
|
||||
proc fb* = echo "buzz!"
|
||||
1
tests/import/fizz/m21496.nim
Normal file
1
tests/import/fizz/m21496.nim
Normal file
@@ -0,0 +1 @@
|
||||
proc fb* = echo "fizz!"
|
||||
9
tests/import/t21496.nim
Normal file
9
tests/import/t21496.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
discard """
|
||||
errormsg: "redefinition of 'm21496'; previous declaration here: t21496.nim(5, 12)"
|
||||
"""
|
||||
|
||||
import fizz/m21496, buzz/m21496
|
||||
|
||||
# bug #21496
|
||||
|
||||
m21496.fb()
|
||||
Reference in New Issue
Block a user