Skip to content

Fix #4948: final implicit class can be overridden #5426

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
Nov 21, 2018

Conversation

Kobenko
Copy link
Contributor

@Kobenko Kobenko commented Nov 11, 2018

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

Hi @Kobenko. Thanks for the contribution! Can you please add a regression test

@Kobenko
Copy link
Contributor Author

Kobenko commented Nov 12, 2018

@allanrenucci yeah. sure.

@Kobenko
Copy link
Contributor Author

Kobenko commented Nov 19, 2018

@allanrenucci hi. can you check my test and tip me how correct to create CLA status? (it is strange, since I already signed it)

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

The CLA status sometime doesn't update. CLA is signed.

Two small nitpicks, otherwise LGTM. Can you squash the commits. Thanks!

@@ -293,7 +293,7 @@ object desugar {
val impl @ Template(constr0, parents, self, _) = cdef.rhs
val mods = cdef.mods
val companionMods = mods
.withFlags((mods.flags & AccessFlags).toCommonFlags)
.withFlags((mods.flags & (AccessFlags | Flags.Final)).toCommonFlags)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.withFlags((mods.flags & (AccessFlags | Flags.Final)).toCommonFlags)
.withFlags((mods.flags & (AccessFlags | Final)).toCommonFlags)

@allanrenucci allanrenucci removed their assignment Nov 20, 2018
@allanrenucci allanrenucci merged commit 74477d9 into scala:master Nov 21, 2018
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.

2 participants