Skip to content

Subtyping is wrong (because of variable bounds?) #26654

@ulysses4ever

Description

@ulysses4ever

Julia used to say true (e.g. in 0.6.2) here:

Ref{Union{Int64, Ref{Number}}} <: Ref{Union{Ref{T}, T}} where T

but current master, quite reasonably, says false. If you change, though, Ref to Val it is true again:

Ref{Union{Val{Number}, Int64}} <: Ref{Union{Val{T}, T}} where T

Which seems to be a bug.

Metadata

Metadata

Assignees

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