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

fix #14432: check if scala 2 case class is accessible #15008

Merged
merged 1 commit into from
May 6, 2022

Conversation

bishabosha
Copy link
Member

closes #14432

check the access flags of the constructor (including qualified private) for Mirrors of scala 2 case classes (this is because fromProduct needs to call the constructor).

@dwijnand dwijnand enabled auto-merge May 5, 2022 09:30
@bishabosha bishabosha disabled auto-merge May 5, 2022 17:01
@bishabosha bishabosha disabled auto-merge May 5, 2022 17:01
@bishabosha bishabosha requested a review from dwijnand May 5, 2022 17:19
@bishabosha
Copy link
Member Author

added a lot of tests and some new rules to consider that now some scala 3 compiled product types get anonymous mirrors

@bishabosha bishabosha enabled auto-merge May 6, 2022 10:03
@bishabosha bishabosha merged commit e099a8b into scala:main May 6, 2022
@bishabosha bishabosha deleted the fix-14432 branch May 6, 2022 10:58
@bishabosha bishabosha added the release-notes Should be mentioned in the release notes label May 9, 2022
@Kordyjan Kordyjan added this to the 3.2.0 milestone Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:typeclass-derivation release-notes Should be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crash when summon Mirror for case class with private ctor compiled by 2.13
3 participants