Skip to content

Fix #22724: Revert the PolyType case in #21744 #22820

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 1 commit into from
Apr 11, 2025

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Mar 17, 2025

Fix #22724

We still need to instantiate TypeParamRefs with TypeVars for PolyTypes when checking whether result conforms.

@noti0na1 noti0na1 requested a review from smarter March 18, 2025 01:19
@noti0na1 noti0na1 marked this pull request as ready for review March 18, 2025 01:20
@Gedochao Gedochao requested a review from mbovel April 7, 2025 14:23
Copy link
Member

@mbovel mbovel left a comment

Choose a reason for hiding this comment

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

I am not very familiar with PolyTypes. However this fix does not seem unreasonable to me 😄 I base my review on the fact that instantiateWithTypeVars was used before #21744, and is also used in similar situations, for example in methType or in normalize.

@mbovel mbovel merged commit 93ed111 into scala:main Apr 11, 2025
44 of 49 checks passed
@mbovel mbovel deleted the fix-22724 branch April 11, 2025 10:16
@smarter
Copy link
Member

smarter commented Apr 15, 2025

Oops I missed this, thanks for the fix!

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.

Regression in typer
3 participants