Skip to content

Commit

Permalink
define applicable for kwargs
Browse files Browse the repository at this point in the history
fix #36611
  • Loading branch information
vtjnash committed Feb 14, 2023
1 parent 6976bac commit 25e3f0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ end
# invoke does not have its own call cache, but kwcall for invoke does
setfield!(typeof(invoke).name.mt, :max_args, 3, :monotonic) # invoke, f, T, args...

# define applicable(f, T, args...; kwargs...), without kwargs wrapping
# to forward to applicable
function Core.kwcall(kwargs, ::typeof(applicable), @nospecialize(args...))
@inline
return applicable(Core.kwcall, kwargs, args...)
end


# core operations & types
include("promotion.jl")
include("tuple.jl")
Expand Down

0 comments on commit 25e3f0e

Please sign in to comment.