Skip to content

Fix #2360: Fix inlined module ref. #2364

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
May 5, 2017
Merged

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki requested a review from odersky May 5, 2017 06:09
untpd.Select(ref(lastSelf), OuterSelectName(EmptyTermName, lastLevel - level)).withType(selfSym.info)
else if (rhsClsSym.is(Module))
ref(rhsClsSym.companionModule)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be rhsClsSym.sourceModule?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case rhsClsSym.companionModule and rhsClsSym. sourceModule have the same symbol. Should I change it to rhsClsSym. sourceModule?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it's sourceModule for going from a module class to its value. companionModule works sort of by accident.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@odersky
Copy link
Contributor

odersky commented May 5, 2017

LGTM, thanks!

@odersky odersky merged commit ad2bb89 into scala:master May 5, 2017
@allanrenucci allanrenucci deleted the fix-#2360 branch December 14, 2017 19:18
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