-
-
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
Incorrect subtyping result for Ref{Vector{Tuple{K}} where K} <: Ref{<:Vector{K}} where K
#50716
Labels
bug
Indicates an unexpected problem or unintended behavior
types and dispatch
Types, subtyping and method dispatch
Comments
topolarity
added
bug
Indicates an unexpected problem or unintended behavior
types and dispatch
Types, subtyping and method dispatch
labels
Jul 29, 2023
Another comparison: julia> Ref{Vector{Tuple{K}} where K} <: Ref{<:Vector{K}} where K
true
julia> Ref{Vector{Val{K}} where K} <: Ref{<:Vector{K}} where K
false Fixing should be simple, just replace Lines 937 to 950 in 9f9e989
Perhaps a typo in #24104? |
Seems to have been intentional, but simply was wrong. Perhaps at the time it was avoiding some other bug. Did you want to make a PR and we can try PkgEval on it? |
Thanks @N5N3 ! |
KristofferC
pushed a commit
that referenced
this issue
Oct 29, 2024
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
I might be reasoning about this incorrectly, but Julia declares:
I think this is incorrect because it requires proving that
∃K'. (Vector{Tuple{K}} where K) <: Vector{K'}
which is false.For comparison:
The text was updated successfully, but these errors were encountered: