Can `@code_ir` support kwargs
- Dominant language
- Julia
- Stars
- 113
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
### Motivation and description
```jl
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](https://github.com/JuliaLang/julia/blob/8c48fe9f01b27d9bdc97070d4865e3ece992d49b/stdlib/InteractiveUtils/src/macros.jl#L185) and [typesof usage in gen_call_with_extracted_types](https://github.com/JuliaLang/julia/blob/8c48fe9f01b27d9bdc97070d4865e3ece992d49b/stdlib/InteractiveUtils/src/macros.jl#L61).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.