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

Type inference regression #51510

Closed
KristofferC opened this issue Sep 29, 2023 · 0 comments · Fixed by #51512
Closed

Type inference regression #51510

KristofferC opened this issue Sep 29, 2023 · 0 comments · Fixed by #51512
Labels
compiler:inference Type inference kind:regression Regression in behavior compared to a previous version
Milestone

Comments

@KristofferC
Copy link
Sponsor Member

https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/491dfb5_vs_a468aa1/AccessorsExtra.primary.log started occurring on the 1.10 backport branch and is also happening on master.

According to @vtjnash, this is due to:

julia> Base.return_types(Base.promote_type, (Type{Any}, Any))
3-element Vector{Any}:
 Type{Any}
 Type{Any}
 Type{Any}

julia> Base.return_types(Base.promote_type, (Type{Any}, DataType))
2-element Vector{Any}:
 Type{Any}
 Any # oops

julia> Base.return_types(Base.promote_type, (Type{Any}, Type))
3-element Vector{Any}:
 Type{Any}
 Type{Any}
 Type{Any}
@KristofferC KristofferC added kind:regression Regression in behavior compared to a previous version compiler:inference Type inference labels Sep 29, 2023
@KristofferC KristofferC added this to the 1.10 milestone Sep 29, 2023
vtjnash added a commit that referenced this issue Sep 29, 2023
vtjnash added a commit that referenced this issue Oct 4, 2023
oscardssmith pushed a commit that referenced this issue Oct 5, 2023
KristofferC pushed a commit that referenced this issue Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference kind:regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant