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

merge unions of vararg tuples #55123

Merged
merged 2 commits into from
Jul 18, 2024
Merged

merge unions of vararg tuples #55123

merged 2 commits into from
Jul 18, 2024

Conversation

simeonschaub
Copy link
Member

Normalize unions such as Union{Tuple{}, Tuple{T}, Tuple{T, T, Vararg{T}} to Tuple{Vararg{T}}. This should make certain sutyping
queries more precise.

fixes #54746

Normalize unions such as `Union{Tuple{}, Tuple{T}, Tuple{T, T,
Vararg{T}}` to `Tuple{Vararg{T}}`. This should make certain sutyping
queries more precise.

fixes #54746
@simeonschaub simeonschaub added the domain:types and dispatch Types, subtyping and method dispatch label Jul 14, 2024
@JeffBezanson
Copy link
Sponsor Member

This is a fun one, let's see how it goes :)

@oscardssmith
Copy link
Member

should this get an Inference benchmark run to make sure it doesn't cause any regressions?

@simeonschaub
Copy link
Member Author

@nanosoldier runbenchmarks("inference", vs=":master")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - no performance regressions were detected. A full report can be found here.

@oscardssmith oscardssmith merged commit d4362e4 into master Jul 18, 2024
8 checks passed
@oscardssmith oscardssmith deleted the sds/merge_vararg_unions branch July 18, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suboptimal subtyping: tuple types vs unions of tuple types
4 participants