Skip to content

Fix #1269: Typing and pattern matching of nested subclasses #1398

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 2 commits into from
Aug 1, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 17, 2016

Two problems, one in typing and one in pattern matching were fixed.

Review by @liufengyun or @DarkDimius.

odersky added 2 commits July 17, 2016 14:16
The previously used `rebase` did not rewrire outer this references.
The right thing to do here is an asSeenFrom.
Previous test did not reflect deeper paths for outer references. This caused
a -Ycheck:patMat failure for i1269.scala.
@liufengyun
Copy link
Contributor

/rebuild

@DarkDimius
Copy link
Contributor

I'd like to review this PR. I'm currently relying on rebase in linker and I need to make sure that new version works for me as intended.

@DarkDimius DarkDimius self-assigned this Jul 28, 2016
@odersky
Copy link
Contributor Author

odersky commented Jul 31, 2016

Is this ready to go in? It's been 2 weeks without any activity on this.

@DarkDimius
Copy link
Contributor

@odersky, after applying this change in linker, the behavior did not change(I'm getting the same call graphs on tests), which is good.
Unfortunately, the running time increased by 1.4x.

We need this change in for correctness though. So I propose to get the check in and discuss how we can get the speed back later. LGTM.

@DarkDimius DarkDimius merged commit a0ad3f1 into scala:master Aug 1, 2016
@odersky
Copy link
Contributor Author

odersky commented Aug 1, 2016

Interesting that the running time went up so much. There might be some scope for caching asSeenFroms, similar to what we do for caching member denotations.

@allanrenucci allanrenucci deleted the fix-#1269 branch December 14, 2017 16:59
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