close #9891 by adding a test
This commit is contained in:
parent
44aadd50cf
commit
13190435a6
2 changed files with 19 additions and 0 deletions
15
tests/misc/tsamename.nim
Normal file
15
tests/misc/tsamename.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# bug #9891
|
||||||
|
|
||||||
|
import "."/tsamename2
|
||||||
|
|
||||||
|
# this works
|
||||||
|
callFun(fooBar2)
|
||||||
|
|
||||||
|
when true:
|
||||||
|
# Error: attempting to call routine: 'processPattern'
|
||||||
|
callFun(fooBar)
|
||||||
|
|
||||||
|
when true:
|
||||||
|
# BUG: Error: internal error: expr(skModule); unknown symbol
|
||||||
|
proc processPattern() = discard
|
||||||
|
callFun(fooBar)
|
||||||
4
tests/misc/tsamename2.nim
Normal file
4
tests/misc/tsamename2.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
proc fooBar*()=discard
|
||||||
|
proc fooBar2*()=discard
|
||||||
|
proc callFun*[Fun](processPattern: Fun) =
|
||||||
|
processPattern()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue