Re: Function overloading by dependent type

2019-05-13 Thread mratsim
That's a bug, during overloading concrete types overloads should have precedence over generics if they match.

Function overloading by dependent type

2019-05-12 Thread k0zmo
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]