Skip to content

Don't cache given aliases to this #9594

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
Aug 19, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 19, 2020

A given alias

given Foo = this

does not need to be cached in a lazy val since this is an immutable reference.

A given alias

   given Foo = this

does not need to be cached in a lazy val since `this` is an immutable reference.
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

LGTM

@odersky odersky merged commit 2240b29 into scala:master Aug 19, 2020
@odersky odersky deleted the change-codegen-given-this branch August 19, 2020 17:07
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