Skip to content

== not transitive for TypeVars #8920

@jiahao

Description

@jiahao

Admittedly I don't really grok how TypeVars can be used at the user level, but I find this rather unintuitive:

julia> A = TypeVar(:x, Integer, Real); B = TypeVar(:x, FloatingPoint, Real); C = Real;

julia> A==B #false?
false

julia> B==C #false?
true

julia> C==A #false?
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions