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
Summary of both issues: bool and enum in the VM are changed to int when passed via quote do or to other macros.
It also triggers a very misleading error if they are passed to a template that uses identifier injection.
Instead of saying that one of the parameter is of incorrect type, for example got static int instead of static bool we get undeclared identifier.
Due to the many other early symbol resolution issues with macro this wrong message led me to try lots of unrelated changes that didn't solve the actual issue.
binding to symbols with backticks that are not of type NimNode is not supported, and it can't reliably be supported. It is a bug though the error message is not correct.
This is a followup to #7375 and #9520:
Summary of both issues:
bool
andenum
in the VM are changed to int when passed via quote do or to other macros.It also triggers a very misleading error if they are passed to a template that uses identifier injection.
Instead of saying that one of the parameter is of incorrect type, for example
got static int instead of static bool
we getundeclared identifier
.Due to the many other early symbol resolution issues with macro this wrong message led me to try lots of unrelated changes that didn't solve the actual issue.
Test case:
The text was updated successfully, but these errors were encountered: