forked from sbt/zinc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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).
- Loading branch information
Showing
5 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
zinc/src/sbt-test/source-dependencies/unexpanded-names/Foo.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Foo.owner.isEffectiveRoot == true | ||
class Fooo { | ||
// This one is problematic because of expanded names | ||
private[Fooo] object Bar | ||
} | ||
|
||
package issue127 { | ||
// Foo.owner.isEffectiveRoot == false | ||
class Foo { | ||
private[Foo] object Bar | ||
class Baz { | ||
private[Baz] object Bazz | ||
} | ||
} | ||
|
||
object Foo { | ||
private[issue127] class Bippy | ||
// This one is problematic because of expanded names | ||
private[issue127] object Bippy | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# See https://github.com/sbt/zinc/issues/127 | ||
> compile |