Skip to content

Some fixes around mixin and memoization #635

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

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 8, 2015

(1) Fix implementations of private trait setters
(2) Copy annotations from trait methods to their implementations
(3) Copy selected annotations from getters to fields

odersky added 5 commits June 8, 2015 11:04
The logic to add trait setters to Scala 2 traits was wrong. This led
to AbstractMethodErrors in the formerly commented out part of scala-trait.scala.
Implementations inherit all annotations on the implemented trait methods.
For the moment, we keep all annotations on getters and setters, but this could be changed.
@odersky
Copy link
Contributor Author

odersky commented Jun 8, 2015

Review by @DarkDimius

@DarkDimius
Copy link
Contributor

LGTM

DarkDimius added a commit that referenced this pull request Jun 12, 2015
…etters

Some fixes around mixin and memoization
@DarkDimius DarkDimius merged commit ae8a246 into scala:master Jun 12, 2015
@allanrenucci allanrenucci deleted the fix/private-scala2-trait-setters branch December 14, 2017 19:22
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.

3 participants