Skip to content

Regression in typealias with Union{} #16922

Closed
@nalimilan

Description

This used to work on 0.4.5:

julia> typealias VecOrNullableVec{T} Union{AbstractVector{T}, AbstractVector{Nullable{T}}}
AbstractArray{T,1}

julia> VecOrNullableVec{Int}
AbstractArray{Int64,1}

julia> AbstractArray{Nullable{Int},1} <: VecOrNullableVec{Int}
false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous versiontypes and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions