Skip to content

Incorrect subtyping result for Ref{Vector{Tuple{K}} where K} <: Ref{<:Vector{K}} where K #50716

Closed

Description

I might be reasoning about this incorrectly, but Julia declares:

julia> Ref{Vector{Tuple{K}} where K} <: Ref{<:Vector{K}} where K
true

I think this is incorrect because it requires proving that ∃K'. (Vector{Tuple{K}} where K) <: Vector{K'} which is false.

For comparison:

julia> Ref{Vector{K} where K} <: Ref{<:Vector{K}} where K
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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