parent
ef8ddef47b
commit
7e53c1c5c5
4 changed files with 19 additions and 2 deletions
6
tests/modules/mmodule_same_proc.nim
Normal file
6
tests/modules/mmodule_same_proc.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
# the module being the same name as the proc
|
||||
# is a requirement to trigger the error
|
||||
import mmodule_same_proc_client
|
||||
|
||||
proc bar*[T](foo: T): bool = foo.mmodule_same_proc_client()
|
||||
2
tests/modules/mmodule_same_proc_client.nim
Normal file
2
tests/modules/mmodule_same_proc_client.nim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
proc mmodule_same_proc_client*(x: string): bool = x.len > 0
|
||||
9
tests/modules/tmodule_same_proc.nim
Normal file
9
tests/modules/tmodule_same_proc.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
import mmodule_same_proc
|
||||
|
||||
# importing baz causes the error not to trigger
|
||||
#import baz
|
||||
|
||||
# bug #11188
|
||||
|
||||
discard "foo".bar()
|
||||
Loading…
Add table
Add a link
Reference in a new issue