Skip to content

typeintersect Vararg aborts #44735

@vtjnash

Description

@vtjnash

this is not good:

julia> typeintersect(Vararg{Int}, Int)
julia: /data/vtjnash/julia/src/subtype.c:1261: subtype: Assertion `!jl_is_vararg(x) && !jl_is_vararg(y)' failed.

signal (6): Aborted

and other mild oddities (I think these are correct, since they can appear as type parameters, they should be valid as arguments also)

julia> typeintersect(1, 2)
Union{}

julia> typeintersect(1, 1)
1

julia> typeintersect(1, Any)
1

julia> typeintersect(Any, 1)
1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous versiontypes and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions