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

Disallow mixins where super calls bind to vals #10268

Merged
merged 1 commit into from Feb 21, 2023
Merged

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Jan 18, 2023

Super calls in traits are bound when the trait is mixed into a class. Disallow mixin compositions where the target of a super call is a value (not a method).

Fixes scala/bug#12715. Fixes scala/bug#10308.

Super calls in traits are bound when the trait is mixed into a class.
Disallow mixin compositions where the target of a super call is
a value (not a method).
@scala-jenkins scala-jenkins added this to the 2.13.11 milestone Jan 18, 2023
@lrytz lrytz requested a review from retronym January 18, 2023 13:07
@SethTisue SethTisue self-assigned this Jan 18, 2023
@SethTisue
Copy link
Member

SethTisue commented Jan 21, 2023

let's see what the community build thinks about 2.13.11-bin-05e861b-SNAPSHOT: run 4245, run 4246

@SethTisue
Copy link
Member

No failures in the CB. (Metals always fails on PR validation snapshots.)

@SethTisue SethTisue removed their assignment Jan 23, 2023
@som-snytt
Copy link
Contributor

There are fewer digits in scala/bug#1938 where Martin says, "Should be relatively straightforward."

sjrd added a commit to scala/scala3 that referenced this pull request Feb 14, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 14, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 14, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 14, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 15, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 15, 2023
sjrd added a commit to scala/scala3 that referenced this pull request Feb 15, 2023
Copy link
Member

@retronym retronym left a comment

Choose a reason for hiding this comment

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

LGTM!

@lrytz lrytz merged commit edfb564 into scala:2.13.x Feb 21, 2023
@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
5 participants