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

Remove false unchecked warnings on refined types #14703

Merged
merged 1 commit into from Mar 21, 2022

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Mar 17, 2022

Motivation: Driven by the warnings that came out of studying a fix for #11834 (which we might resolve by making the situation impossible), I have a refactor of our typed/untyped trees which uses type members instead of type parameters (i.e. refined types instead of applied types). But doing a type test, via isInstanceOf or via pattern matching syntax, on a refined type (also) can produce spurious, i.e false positive, unchecked warnings. So with this fix I get rid of the fatal warnings in boostrapping the compiler with my Trees refactor.

@dwijnand dwijnand marked this pull request as ready for review March 17, 2022 15:37
@dwijnand dwijnand requested a review from odersky March 17, 2022 15:37
@odersky odersky assigned dwijnand and unassigned odersky Mar 20, 2022
@dwijnand dwijnand force-pushed the checkable-isInstanceOf-RefinedType branch from b53fdea to 1b3b399 Compare March 21, 2022 09:18
@dwijnand dwijnand enabled auto-merge March 21, 2022 09:18
@dwijnand dwijnand merged commit 6ae7291 into scala:main Mar 21, 2022
@dwijnand dwijnand deleted the checkable-isInstanceOf-RefinedType branch March 21, 2022 20:28
@Kordyjan Kordyjan added this to the 3.1.3 milestone Aug 1, 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.

None yet

3 participants