Can a type be declared as a subtype of my abstract type and Tuple?

Say I have abstract type Custom end, how can I declare a tuple-like type that is both <:Tuple and <:Custom so that methods of Tuple works on Custom. Note that I would like vararg-tuple if possible. Thanks!

That is not possible. Multiple inheritance is not available in Julia, and also you cannot subtype concrete types like Tuple.

3 Likes