Skip to content

support intersection types in mirrorCompanionRef #15192

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 4 commits into from
May 30, 2022

Conversation

bishabosha
Copy link
Member

@bishabosha bishabosha commented May 16, 2022

Introduces MirrorSource - i.e. an abstract representation of what is used to create the mirror. This means only one traversal of types compared to using whyNotAcceptableType. It also is extensible, i.e. allowing us to add new kinds of types supporting mirrors, such as generic tuple types.

This also fixes an uncaught bug where we could summon a mirror for ::[Int] & Some[Int], which would only fail at runtime

closes #15190

@bishabosha bishabosha requested a review from dwijnand May 16, 2022 10:58
@bishabosha bishabosha force-pushed the fix-15190 branch 2 times, most recently from ef77817 to 085b2ab Compare May 16, 2022 11:01
@bishabosha bishabosha added this to the 3.2.0-RC1 milestone May 24, 2022
@bishabosha bishabosha assigned sjrd and unassigned dwijnand May 30, 2022
@bishabosha bishabosha requested a review from sjrd May 30, 2022 08:29
@bishabosha bishabosha force-pushed the fix-15190 branch 3 times, most recently from 330e1b2 to 6842110 Compare May 30, 2022 12:26
remove case: OrType is no longer supported
@bishabosha bishabosha enabled auto-merge May 30, 2022 15:27
@bishabosha bishabosha merged commit 9d2d194 into scala:main May 30, 2022
@bishabosha bishabosha deleted the fix-15190 branch May 30, 2022 19:14
@Kordyjan Kordyjan modified the milestones: 3.2.0-RC1, 3.2.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash when summon sum mirror of intersection type
4 participants