Skip to content

Fix #8602: Do not create mixins for constant-expression final vals. #10496

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 25, 2020

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Nov 25, 2020

This matches what Scala 2 does (addressing binary compatibility with Scala 2) and allows a trait with only such final vals to be extended from Java.

This matches what Scala 2 does (addressing binary compatibility
with Scala 2) and allows a trait with only such `final val`s to be
extended from Java.
@sjrd sjrd requested a review from smarter November 25, 2020 19:57
@sjrd sjrd added this to the 3.0.0-RC1 milestone Nov 25, 2020
@sjrd sjrd linked an issue Nov 25, 2020 that may be closed by this pull request
@sjrd sjrd merged commit 1c3538a into scala:master Nov 25, 2020
@sjrd sjrd deleted the no-mixin-const-expr-final-val branch November 25, 2020 22:47
@Kordyjan Kordyjan modified the milestones: 3.0.0-M3, 3.0.0 Aug 2, 2023
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.

final val in trait should not be encoded as abstract method
3 participants