Does someone know an alternative way how I can dispatch on Vararg?
I.e. I have a custom variable type which could be assigned wth Vararg and know I want to dispatch f(type::Type{Vararg}) = ... but this fails with above error.
thank you all for your answers. To clarify: The goal is not to dispatch with Vararg, but ON Vararg. My current workaround is to not dispatch at all, but to use if-else. It seems this is the only way possible right now.
type = Vararg
function f(type)
if type === Vararg
# do something
else
# do something else
end
end
f(type)