-
Notifications
You must be signed in to change notification settings - Fork 121
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
Conversation
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).
Damn, I forgot to add the "Fix ..." in the commit message and not the title. |
This is ready for review. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 Bippy
s? 😝
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dingos are also available.
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 ofname
which will decipher these accessrights and return their simple names instead (with all the previous
$$
prefixes stripped out).
Fix #127