Skip to content

typeintersect bug with NTuple #32392

@vtjnash

Description

@vtjnash
julia> typeintersect((Tuple{Vararg{Union{},A}} where A), Tuple{Int64, Vararg{Int64, N} where N}) !== Union{}
false

This is bad since the intersection is non-empty when A is later given:

julia> typeintersect((Tuple{Vararg{Union{},3}} where A), Tuple{Int64, Vararg{Int64, N} where N}) !== Union{}
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviortypes 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