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

Kwargs in anonymous function #56

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

Kwargs in anonymous function #56

tecosaur opened this issue Nov 21, 2023 · 0 comments

Comments

@tecosaur
Copy link

So, I've hit another kwargs related bug with what I hope is a fairly self-explanatory MWE.

julia> using AllocCheck

julia> @check_allocs (k) -> (k * 2)
#4 (generic function with 1 method)

julia> @check_allocs (; k) -> (k * 2)
ERROR: UndefVarError: `#8` not defined
Stacktrace:
 [1] macro expansion
   @ ~/.julia/packages/AllocCheck/xTVrb/src/macro.jl:154 [inlined]
 [2] top-level scope
   @ REPL[3]:1
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