summary refs log tree commit diff stats
path: root/tests/generics/ttempl_in_generic.nim
blob: f04b9d216c8cf936100a96e64498020583decf1d (plain) (blame)
1
2
3
4
5
6
7
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)