Skip to content

Fix #859 #1062

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 3 commits into from
Feb 5, 2016
Merged

Fix #859 #1062

merged 3 commits into from
Feb 5, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 5, 2016

Review by @smarter.

It's slightly more efficient. There was no need to have
a separate cache for the lazy val.
Instead of forcing again, and causing an assertion error, back out
assuming that the result is false. Fixes first problem with scala#859.
It seems when unpickling nsc that some module classes come
without a source module. Survive this situation rather than
crashing. i859.scala is an example.

i859 compiles with the patch, but causes a deep subtype when unpickling.
Not sure whether scalac does the same.
@smarter
Copy link
Member

smarter commented Feb 5, 2016

LGTM

odersky added a commit that referenced this pull request Feb 5, 2016
@odersky odersky merged commit 12a02c7 into scala:master Feb 5, 2016
@allanrenucci allanrenucci deleted the fix-#859 branch December 14, 2017 19:19
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