fixes #4600
This commit is contained in:
parent
e9e413552a
commit
55e86184a5
2 changed files with 15 additions and 6 deletions
8
tests/generics/ttempl_in_generic.nim
Normal file
8
tests/generics/ttempl_in_generic.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
# bug #4600
|
||||
template foo(x: untyped): untyped = echo 1
|
||||
template foo(x,y: untyped): untyped = echo 2
|
||||
|
||||
proc bar1[T](x: T) = foo(x)
|
||||
proc bar2(x: float) = foo(x,x)
|
||||
proc bar3[T](x: T) = foo(x,x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue