Skip to content

Fix atoms computation #6741

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

Merged
merged 2 commits into from
Jun 27, 2019
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 25, 2019

It's possible that a singleton type has a disjunction of singleton types
as underlying type. In this case atoms of the first type should return
the disjunction, not the singleton type itself.

@odersky
Copy link
Contributor Author

odersky commented Jun 25, 2019

test performance please

It's possible that a singleton type has a disjunction of singleton types
as underlying type. In this case `atoms` of the first type should return
the disjunction, not the singleton type itself.
@odersky odersky force-pushed the fix-subtype-bottom branch from 5769aa5 to f94fdda Compare June 25, 2019 20:18
@odersky odersky changed the title Avoid infinite recursion when comparing Nothing and union types Fix atoms computation Jun 25, 2019
@odersky
Copy link
Contributor Author

odersky commented Jun 25, 2019

test performance please

@dottybot
Copy link
Member

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

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/6741/ to see the changes.

Benchmarks is based on merging with master (10526a7)

odersky added a commit to dotty-staging/dotty that referenced this pull request Jun 26, 2019
Even the mitigation would have needed a workaround (because of scala#6741).
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liufengyun liufengyun merged commit e1b8f74 into scala:master Jun 27, 2019
@liufengyun liufengyun deleted the fix-subtype-bottom branch June 27, 2019 08:41
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.

3 participants