Created
May 3, 2011 12:08
-
-
Save jrudolph/953217 to your computer and use it in GitHub Desktop.
PrivateShadowing
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
#Project properties | |
#Tue May 03 13:46:53 CEST 2011 | |
project.organization=test | |
project.name=PackageShadow | |
sbt.version=0.7.6.RC0 | |
project.version=1.0 | |
build.scala.versions=2.8.1 2.9.0.RC2 | |
project.initialize=false |
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
package a | |
private[a] object Settings { | |
val X = 1 | |
} | |
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
package b | |
object Settings { | |
val Y = 2 | |
} | |
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
package b | |
package c | |
import a._ | |
object Test { | |
println(Settings.Y) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment