How Base.invokelatest invoke a function with keyword parameters?


#1
julia> function tryeval()
           @eval newfun(;kw="default") = uppercase(kw)
           Base.invokelatest(newfun,kw="abc")
       end
tryeval (generic function with 1 method)

julia> tryeval()
ERROR: function invokelatest does not accept keyword arguments
Stacktrace:
 [1] kwfunc(::Any) at ./boot.jl:237
 [2] tryeval() at ./REPL[1]:3

#2