Skip to content

Fix SymDenot.isStatic & isStaticOwner after lambdaLift. #1475

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

Closed
wants to merge 1 commit into from

Conversation

DarkDimius
Copy link
Contributor

The other approach would be to actually check for presence of $outer
field after lambda lift, but I'd prefer not to rely on side-effects here

The other approach would be to actually check for presence of $outer
field after lambda lift, but I'd prefer not to rely on side-effects here
@odersky
Copy link
Contributor

odersky commented Aug 25, 2016

I don't think this is in the right spirit of things. "isStatic" is a property of denotations. When things get moved out to package level by flatten, they are thereby made static. We should not try to dissimulate this. So we need to work at the caller. Either ask whether the denotation was static before flatten and lambda lift, or indeed look at an outer field.

@odersky
Copy link
Contributor

odersky commented Aug 25, 2016

Superseded by #1477.

@odersky odersky closed this Aug 25, 2016
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