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
typeSomething=objectproctestA(x: Something) =discardtemplatedef(name: expr) {.immediate.} =proctestB[T: Something](x: T) =`test name`(x)
def A
var x: SomethingtestB(x)
0.10.2: works
devel:
(11, 5) Info: instantiation from here
(7, 15) Error: type mismatch: got (T)
but expected one of:
a0.testA(x: Something)
> Process terminated with exit code 256
Obviously, this code is quite pointless, I just oversimplified it.
Adding {.dirty.} makes it work.
The text was updated successfully, but these errors were encountered:
0.10.2: works
devel:
Obviously, this code is quite pointless, I just oversimplified it.
Adding
{.dirty.}
makes it work.The text was updated successfully, but these errors were encountered: