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 8da820c commit f84996fCopy full SHA for f84996f
src/utils.jl
@@ -434,6 +434,8 @@ See also: [`combinearg`](@ref)
434
"""
435
function splitarg(arg_expr)
436
if @capture(arg_expr, arg_expr2_ = default_)
437
+ # This assert will only be triggered if a `nothing` literal was somehow spliced into the Expr.
438
+ # A regular `nothing` default value is a `Symbol` when it gets here. See #178
439
@assert default !== nothing "splitarg cannot handle `nothing` as a default. Use a quoted `nothing` if possible. (MacroTools#35)"
440
else
441
arg_expr2 = arg_expr
0 commit comments