Skip to content

Fix #127: Use unexpanded names#431

Merged
jvican merged 3 commits intosbt:1.0.xfrom
scalacenter:issue-127
Oct 16, 2017
Merged

Fix #127: Use unexpanded names#431
jvican merged 3 commits intosbt:1.0.xfrom
scalacenter:issue-127

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