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

Widen unions before finding members #12925

Merged
merged 2 commits into from
Jun 25, 2021
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 24, 2021

If a prefix in a findMember is an OrType, widen it to its join before
computing the selection denotation. This mimics what is done if the
prefix is pulled out into a temporary variable.

Fixes #12909

If a prefix in a findMember is an OrType, widen it to its join before
computing the selection denotation. This mimics what is done if the
prefix is pulled out into a temporary variable.

Fixes scala#12909
@odersky
Copy link
Contributor Author

odersky commented Jun 24, 2021

test performance please

@dottybot
Copy link
Member

performance test scheduled: 2 job(s) in queue, 1 running.

@odersky
Copy link
Contributor Author

odersky commented Jun 24, 2021

test performance please

@dottybot
Copy link
Member

performance test scheduled: 3 job(s) in queue, 1 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit https://dotty-bench.epfl.ch/12925/ to see the changes.

Benchmarks is based on merging with master (ecbe3d2)

@odersky odersky requested a review from smarter June 25, 2021 08:51
@smarter smarter merged commit b3ade17 into scala:master Jun 25, 2021
@smarter smarter deleted the fix-12909 branch June 25, 2021 13:28
@Kordyjan Kordyjan added this to the 3.0.2 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type inference failure(Required: Nothing)
4 participants