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
test1.nim(26, 11) template/generic instantiation from here
test1.nim(5, 16) Error: type mismatch: got (proc (): int) but expected 'MyProcType = proc (): int{.noconv.}'
Apparently, Nim fails to fetch the pragma from the declaration when doing this check. Also interesting what happens if I remove result[1][4] = newEmptyNode() (which deletes the pragma from the definition):
This yields:
Apparently, Nim fails to fetch the pragma from the declaration when doing this check. Also interesting what happens if I remove
result[1][4] = newEmptyNode()
(which deletes the pragma from the definition):It compiles if I do not split declaration and implementation:
The problem also vanishes if I do not
genSym
the proc:The text was updated successfully, but these errors were encountered: