How to access the parameter list of a super type

The internal structure of type X is somewhat convoluted, but you can retrieve the individual type parameters as follows (Julia v0.6.2):

julia> X.var
F

julia> X.body.var
Y

julia> X.body.body.var
Z
1 Like