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
While trying to create a mapping table from strings to internal types for use in a macro I noticed I got weird errors when trying to have NimNodes in a const array:
This creates an error "Error: cannot generate VM code for int" for the second echo statement. Removing the echo statement makes it work fine, even with the declaration of the const. The let works fine.
The text was updated successfully, but these errors were encountered:
lib/core/macros.nim(377, 1) Error: internal error: expr(nkIdent); unknown node kind
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp c <file>
Yeah I know how to work around it, but at the very least this should throw an better error. Or in the case of the compiler crashes an actual error instead.
While trying to create a mapping table from strings to internal types for use in a macro I noticed I got weird errors when trying to have NimNodes in a const array:
This creates an error "Error: cannot generate VM code for int" for the second echo statement. Removing the echo statement makes it work fine, even with the declaration of the const. The let works fine.
The text was updated successfully, but these errors were encountered: