You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found it pretty hard to define this, I think it's better explained with an example
type nim
TT[T] = object
converter conv[T](x: int): TT[T] =
discard
# comment the following two lines and the program will compile
converter conv[T](n: seq[T]): seq[seq[T]] =
discard
var x = conv[int](0)
This one gives an error that the first converter can not be instantiated with type T.
If I change the converters to procs, then the error also goes away.
The text was updated successfully, but these errors were encountered:
Gives same error without the same name or explicit instantiation, but maybe the original issue can be worked around by not allowing converter matches in converter calls.
Found it pretty hard to define this, I think it's better explained with an example
This one gives an error that the first converter can not be instantiated with type T.
If I change the converters to procs, then the error also goes away.
The text was updated successfully, but these errors were encountered: