-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subtyping bug with comparing diagonal and triangular tuples #26108
Labels
bug
Indicates an unexpected problem or unintended behavior
types and dispatch
Types, subtyping and method dispatch
Comments
vtjnash
added
bug
Indicates an unexpected problem or unintended behavior
types and dispatch
Types, subtyping and method dispatch
labels
Feb 19, 2018
And of course (at the risk of pointing out the obvious) this breaks transitivity: julia> R<:S<:T
true
julia> R<:T
false |
Interesting: this looks almost exactly as a fixed transitivity bug #24166 I reported earlier. If use julia> T1, S1 = Tuple{T, T, Vector} where T, Tuple{T, T, Vector{T}} where T
(Tuple{T,T,Array{T,1} where T} where T, Tuple{T,T,Array{T,1}} where T)
julia> S1 <: T1
false |
JeffBezanson
added a commit
that referenced
this issue
Jan 6, 2020
JeffBezanson
added a commit
that referenced
this issue
Jan 6, 2020
JeffBezanson
added a commit
that referenced
this issue
Jan 15, 2020
KristofferC
pushed a commit
that referenced
this issue
Apr 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
types and dispatch
Types, subtyping and method dispatch
However, it's easy to find types (such as
R = Tuple{Int16, Int32, Vector{Any}}
) for which returningtrue
here makes inference unsoundThe text was updated successfully, but these errors were encountered: