Invalid vararg tuple type in method signature should throw an error #5018
Closed
Description
julia> f(x::(Any..., Int)) = x[end];
julia> methods(f)
#1 method for generic function "f":
f(x::(Any...,Int64)) at none:1
julia> f((12.0,))
12.0
It looks like this currently dispatches as f(x::Tuple)
.