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
# ... a lot of error trace ...
in /usr/lib/crystal/char.cr:704: expanding macro
raise InvalidByteSequenceError.new("Invalid char value #{dump}")
^
in macro 'dump' eval:1, line 1:
> 1. anything
undefined local variable or method 'anything'
The issue lies at src/char.cr L704 where it expects to call Char#dump but instead calls the top level macro dump defined above, because macro lookup appends before method lookup.
Even tough the dump macro name is not that good for a top level macro, it could be a common issue easily reproducible with minimal code:
This fails to compile: https://carc.in/#/r/1tx8
Gives:
The issue lies at src/char.cr L704 where it expects to call
Char#dump
but instead calls the top level macrodump
defined above, because macro lookup appends before method lookup.Even tough the
dump
macro name is not that good for a top level macro, it could be a common issue easily reproducible with minimal code:https://carc.in/#/r/1u15 (same error)
I don't think this can be simply resolved...
Note: if someone can find a better name for this issue... Ty
The text was updated successfully, but these errors were encountered: