Array of unions of subtypes

julia> x = Array{T} where T<:Union{Nothing,S} where S <: Real
Array{T} where {S<:Real, T<:Union{Nothing, S}}

julia> y = Array{Union{Nothing, <:Real}} 
Array{Union{Nothing, Real}}

julia> x == y
false

julia> y <: x
true

julia> x <: y
false
1 Like