Re: Function overloading by dependent type
That's a bug, during overloading concrete types overloads should have precedence over generics if they match.
Function overloading by dependent type
Does Nim support overloading by dependent type? If so, following code does not yield the expected results: type MySeq*[T] = object proc foo(a: seq[int]) = echo "foo: seq[int]" proc foo[T](a: seq[T]) = echo "foo: seq[T]" proc foo(a: MySeq[int]) = echo "foo: MySeq[int]