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
splitdef fails with an assertion on an anonymous function with a single varargs argument:
splitdef
julia> splitdef(Meta.parse(" (args...) -> 0 ")) ERROR: ArgumentError: Not a function definition: :(args...->begin #= none:1 =# 0 end) Stacktrace: [1] splitdef(fdef::Expr) @ MacroTools ~/.julia/packages/MacroTools/PP9IQ/src/utils.jl:317
Either adding another argument or using the long form of the definition is fine:
julia> splitdef(Meta.parse(" (x, args...) -> 0 ")) Dict{Symbol, Any} with 4 entries: :args => Any[:x, :(args...)] :body => quote… :kwargs => Any[] :whereparams => () julia> splitdef(Meta.parse(" function f(args...) 0 end ")) Dict{Symbol, Any} with 5 entries: :name => :f :args => Any[:(args...)] :kwargs => Any[] :body => quote… :whereparams => ()
The text was updated successfully, but these errors were encountered:
PR welcome!
Sorry, something went wrong.
No branches or pull requests
splitdef
fails with an assertion on an anonymous function with a single varargs argument:Either adding another argument or using the long form of the definition is fine:
The text was updated successfully, but these errors were encountered: