Skip to content

Can @code_ir support kwargs #103

Description

@skyleaworlder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions