Skip to content
New issue

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

@check_allocs interacts badly with splatted args and kwargs #52

Open
tecosaur opened this issue Nov 21, 2023 · 0 comments
Open

@check_allocs interacts badly with splatted args and kwargs #52

tecosaur opened this issue Nov 21, 2023 · 0 comments

Comments

@tecosaur
Copy link

I ran into a quick issue in one of the first few tests of @check_allocs I did. I think the MWE is pretty self-explanatory.

julia> @check_allocs g(args...; kwargs...) = f(args...; kwargs...)
ERROR: syntax: invalid "..." on non-final argument around /home/tec/.julia/packages/AllocCheck/xTVrb/src/macro.jl:153
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

Interestingly it seems fine if I only splat args or kwargs

julia> @check_allocs g(; kwargs...) = f(; kwargs...)
g (generic function with 1 method)

julia> @check_allocs g(args...) = f(args...)
g (generic function with 2 methods)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant