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
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