Add a test case for issue #4675.
This commit is contained in:
parent
3fef725d92
commit
9a2b98cd8b
3 changed files with 27 additions and 0 deletions
15
tests/overload/importB.nim
Normal file
15
tests/overload/importB.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
type
|
||||
Foo*[T] = object
|
||||
v*: T
|
||||
|
||||
template `+`*(x: Foo, y: Foo): untyped = x
|
||||
|
||||
template newvar*(r: untyped): untyped {.dirty.} =
|
||||
var r: float
|
||||
|
||||
template t1*(x: Foo): untyped =
|
||||
newvar(y1)
|
||||
x
|
||||
template t2*(x: Foo): untyped =
|
||||
newvar(y2)
|
||||
x
|
||||
Loading…
Add table
Add a link
Reference in a new issue