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
type
R[T, E] =object
A =object
B =object# Remove this overload to make it workfunc err[T](_: type R[T, void]): R[T, void] = discardfunc err(_: type R): R[A, B] = discardecho R.err()
Nim Version
2.0, 2.2
Current Output
testit.nim(11, 7) template/generic instantiation of `err` from here
testit.nim(6, 10) Error: cannot instantiate: 'T'