Skip to content
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 regression #24333

Closed
JeffBezanson opened this issue Oct 25, 2017 · 4 comments
Closed

subtyping regression #24333

JeffBezanson opened this issue Oct 25, 2017 · 4 comments
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior types and dispatch Types, subtyping and method dispatch

Comments

@JeffBezanson
Copy link
Member

julia> Type{Union{Int,Void}} <: Type{Union{T,Void}} where T
true

julia> Type{Union{Ref,Void}} <: Type{Union{T,Void}} where T
false

Both are true in 0.6. Probably an artifact of one of the recent subtyping fixes.

@JeffBezanson JeffBezanson added regression Regression in behavior compared to a previous version types and dispatch Types, subtyping and method dispatch labels Oct 25, 2017
@JeffBezanson JeffBezanson self-assigned this Oct 25, 2017
JeffBezanson added a commit that referenced this issue Jun 26, 2019
JeffBezanson added a commit that referenced this issue Jun 27, 2019
JeffBezanson added a commit that referenced this issue Jun 27, 2019
might be related to #24333 and/or #21153
(cherry picked from commit 0d9c72d)
@oscardssmith
Copy link
Member

oscardssmith commented Dec 7, 2020

fixed on master. Edit no it's not. I misread this horribly.

@KristofferC
Copy link
Member

Should have a test before close

@KristofferC KristofferC reopened this Dec 8, 2020
@KristofferC KristofferC added the needs tests Unit tests are required for this change label Dec 8, 2020
oscardssmith added a commit to oscardssmith/julia that referenced this issue Dec 8, 2020
JeffBezanson pushed a commit that referenced this issue Dec 9, 2020
@vtjnash vtjnash added bug Indicates an unexpected problem or unintended behavior and removed needs tests Unit tests are required for this change regression Regression in behavior compared to a previous version labels Jan 30, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this issue May 4, 2021
@brenhinkeller
Copy link
Contributor

brenhinkeller commented Nov 19, 2022

Still happening in 1.8 and 1.9:

julia> Type{Union{Int,Nothing}} <: Type{Union{T,Nothing}} where T
true

julia> Type{Union{Ref,Nothing}} <: Type{Union{T,Nothing}} where T
false

julia> versioninfo()
Julia Version 1.9.0-alpha1
Commit 0540f9d7394 (2022-11-15 14:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin21.5.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, westmere)
  Threads: 1 on 10 virtual cores

@vtjnash
Copy link
Member

vtjnash commented Jan 24, 2023

@JeffBezanson this returns the correct answer now. can you close it?

@vtjnash vtjnash closed this as completed Oct 31, 2023
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants