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

Normalise mirrorType for mirror Synthesis #19199

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Conversation

EugeneFlesselle
Copy link
Contributor

@EugeneFlesselle EugeneFlesselle commented Dec 5, 2023

If MirrorSource.reduce is given a proxy to an unreduced match type, it will simply get its supertype Any. We need to normalise the mirroredType before attempting to reduce it to a kind of mirror source.

Fix #19198

@EugeneFlesselle EugeneFlesselle changed the title [WIP] Normalise mirrorType for mirror Synthesis Normalise mirrorType for mirror Synthesis Dec 5, 2023
@EugeneFlesselle EugeneFlesselle marked this pull request as ready for review December 5, 2023 14:09
@bishabosha bishabosha merged commit bdeb05a into scala:main Dec 12, 2023
19 checks passed
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
@EugeneFlesselle EugeneFlesselle deleted the i19198 branch January 30, 2024 10:29
WojciechMazur added a commit that referenced this pull request Jun 26, 2024
Backports #19199 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
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.

MatchType not normalised for mirror synthesis when aliased
3 participants