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
julia>macrofoo(x)
quote$x
endend@foo (macro with 1 method)
julia>f(; kwarg) = kwarg
f (generic function with 1 method)
julia>@foof(kwarg = x -> x)
ERROR: syntax:"Main.x" is not a valid function argument name
It seems like the keyword argument specification is the culprit here. The same macro works on a call without a keyword argument:
julia>g(arg) = arg
g (generic function with 1 method)
julia>@foog(x -> x)
#5 (generic function with 1 method)
It seems like the keyword argument specification is the culprit here. The same macro works on a call without a keyword argument:
The text was updated successfully, but these errors were encountered: