It’s definitely annoying. I don’t even know how to call the second method with an empty tuple using invoke
.
If you want to avoid it, instead write
f(::Tuple{F,Vararg{F,nMinus1}}) where {F,nMinus1} = ...
I do this. detect_unbound_args
is useful, but less so now that you get warnings during precompilation.