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

Can @code_ir support kwargs #103

Open
skyleaworlder opened this issue Feb 13, 2023 · 0 comments
Open

Can @code_ir support kwargs #103

skyleaworlder opened this issue Feb 13, 2023 · 0 comments

Comments

@skyleaworlder
Copy link

Motivation and description

julia> example(a, b; c = 1) = a + b + c;

julia> @code_ir example(1, 2; c = 3)
ERROR: MethodError: no method matching typesof(::Int64, ::Int64; c=3)
Closest candidates are:
  typesof(::Any...) at errorshow.jl:178 got unsupported keyword argument "isend"
Stacktrace:
 [1] top-level scope
   @ REPL[45]:1

I think this is a very useful enhancement.

Possible Implementation

julia/macros.jl and typesof usage in gen_call_with_extracted_types.

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