Skip to content
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

Fix #127: Use unexpanded names #431

Merged
merged 3 commits into from
Oct 16, 2017
Merged

Fix #127: Use unexpanded names #431

merged 3 commits into from
Oct 16, 2017

Conversation

jvican
Copy link
Member

@jvican jvican commented Oct 13, 2017

It looks like scalac encodes access rights of objects in their names. To
make sure that we get the right simple names, we need to use
unexpandedName instead of name which will decipher these access
rights and return their simple names instead (with all the previous $$
prefixes stripped out).

Fix #127

It looks like scalac encodes access rights of objects in their names. To
make sure that we get the right simple names, we need to use
`unexpandedName` instead of `name` which will decipher these access
rights and return their simple names insted (with all the previous `$$`
prefixes stripped out).
@jvican
Copy link
Member Author

jvican commented Oct 13, 2017

Damn, I forgot to add the "Fix ..." in the commit message and not the title.

@jvican
Copy link
Member Author

jvican commented Oct 13, 2017

This is ready for review.

@jvican jvican added this to the 1.0.3 milestone Oct 16, 2017
Copy link
Contributor

@Duhemm Duhemm left a comment

Choose a reason for hiding this comment

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

LGTM!

object Foo {
private[issue127] class Bippy
// This one is problematic because of expanded names
private[issue127] object Bippy
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought @eed3si9n said no Bippys? 😝

Copy link
Member

Choose a reason for hiding this comment

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

Dingos are also available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants