@cdome That doesn't work, because iterator is treated as untyped, and untyped
parameter cannot be overloaded. The following code cannot compile.
proc f1(t: seq[int]) = discard
template f1(t: untyped) = discard
f1(@[1])
f1(countup(1,3))
- Compile error when wrapper type(...) with template slangmgh
- Re: Compile error when wrapper type(...) with template slangmgh
- Re: Compile error when wrapper type(...) with template cdome
- Re: Compile error when wrapper type(...) with templ... slangmgh
- Re: Compile error when wrapper type(...) with t... cdome
- Re: Compile error when wrapper type(...) w... slangmgh
