julia> subtypes(Integer) ## there are 4 types of Ints
3-element Array{Any,1}:
Bool
Signed
Unsigned
julia> supertype(Integer) ## Integers are a type of Real, as are Floats
Real
julia> function showtypetree(T, level= 0) ## Here is a function to print the hierarchy
println(" " ^ level, T)
for t in subtypes(T)
if (t != Any)
showtypetree(t, level+1)
end#if
end#for
end#function showtypetree##
showtypetree (generic function with 2 methods)
julia> showtypetree(Signed) ## For example, there are 5 explicitly signed types
Signed
BigInt
Int128
Int16
Int32
Int64
Int8