Skip to content

Warn when matching against an opaque type #10664

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 3 commits into from
Dec 6, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 5, 2020

This is really analogous to matching against an abstract type, and should be
handled the same way.

This is really analogous to matching against an abstract type, and should be
handled the same way.
Update library and compiler with @unchecked annotations when matching
against opaque types.
@odersky
Copy link
Contributor Author

odersky commented Dec 5, 2020

test performance please

@dottybot
Copy link
Member

dottybot commented Dec 5, 2020

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

@dottybot
Copy link
Member

dottybot commented Dec 5, 2020

Performance test finished successfully:

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

Benchmarks is based on merging with master (e834186)

@odersky odersky requested a review from smarter December 5, 2020 22:34
@smarter smarter assigned liufengyun and unassigned smarter Dec 5, 2020
@smarter smarter requested a review from liufengyun December 5, 2020 23:03
@smarter
Copy link
Member

smarter commented Dec 5, 2020

This seems fine to me but assigning @liufengyun since he's more familiar with that code.

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 a575f9c into scala:master Dec 6, 2020
@liufengyun liufengyun deleted the warn-opaque-match branch December 6, 2020 08:37
@anatoliykmetyuk anatoliykmetyuk added the release-notes Should be mentioned in the release notes label Feb 10, 2021
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants