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
There was a problem expanding macro 'macro_140364593214112'
Code in macro 'included'
9 | ctx.read_alias(node, {{@type}}) do |obj|
^
Called macro defined in macro 'included'
9 | ctx.read_alias(node, {{@type}}) do |obj|
Which expanded to:
> 1 | Foo::Serialized
^--------------
Error: undefined constant Foo::Serialized
If the class Foo is commented out it works as expected, the problem does not happen on JSON serialization.
The text was updated successfully, but these errors were encountered:
It does indeed, I can't think a situation that this change could cause a change in the current API behavior, but I wouldn't be surprised if @HertzDevil appears with a corner case that shows that 😅
I added a test case for this and created a PR, locally it passed all std_spec tests
The serialization macro code doesn't use the
::
code when expanding the type, so the code above fails to compile:Error:
If the
class Foo
is commented out it works as expected, the problem does not happen on JSON serialization.The text was updated successfully, but these errors were encountered: