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

Avoid over widening in SpaceEngine #18252

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

dwijnand
Copy link
Member

No description provided.

@dwijnand dwijnand linked an issue Jul 19, 2023 that may be closed by this pull request
@dwijnand dwijnand requested a review from liufengyun July 19, 2023 20:18
@dwijnand dwijnand marked this pull request as ready for review July 19, 2023 20:18
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

// For example, in i17184 widen Option[foo.type]#get
// to Option[foo.type] instead of Option[Int].
tp.underlying.widenExpr
case tp => tp
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: Why introduce the guard tp.isOverloaded? A comment will be very helpful.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's from the original, widenTermRefExpr, which I reference.

@dwijnand dwijnand merged commit fd95c55 into scala:main Jul 20, 2023
17 checks passed
@dwijnand dwijnand deleted the space/singleton-targ branch July 20, 2023 08:09
@Kordyjan Kordyjan added this to the 3.4.0 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.

Pattern Matching : Wrong & Inconsistent exhaustivity warning
3 participants