We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ref #2392 #2388
The following should expand the constant:
require "json" ID_TYPE = {type: Int32, converter: ObscureApi} class Foo JSON.mapping( id: {{ID_TYPE}}, other: Stuff ) end class Bar JSON.mapping( id: {{ID_TYPE}}, different: Stuff ) end
The text was updated successfully, but these errors were encountered:
I would consider this a bug. Only named arguments are not expanded:
macro foo(x0, x1, *xs, n0, n1, **ns) {% x0 %} # => 1 {% x1 %} # => 2 {% xs %} # => {3, 4} {% n0 %} # => {{ 5 }} {% n1 %} # => {{ 7 }} {% ns %} # => {n2: {{ 6 }}, n3: {{ 8 }}} end foo( {{ 1 }}, {{ 2 }}, {{ 3 }}, {{ 4 }}, n0: {{ 5 }}, n2: {{ 6 }}, n1: {{ 7 }}, n3: {{ 8 }}, )
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Ref #2392 #2388
The following should expand the constant:
The text was updated successfully, but these errors were encountered: