We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84996f commit 8aefd25Copy full SHA for 8aefd25
src/utils.jl
@@ -408,7 +408,7 @@ end
408
function combinearg(arg_name, arg_type, is_splat, default)
409
@assert arg_name !== nothing || arg_type !== nothing
410
a = arg_name===nothing ? :(::$arg_type) :
411
- arg_type==:Any ? arg_name :
+ arg_type==:Any && is_splat ? arg_name : # see #177 and julia#43625
412
:($arg_name::$arg_type)
413
a2 = is_splat ? Expr(:..., a) : a
414
return default === nothing ? a2 : Expr(:kw, a2, default)
0 commit comments