Skip to content

Instantly share code, notes, and snippets.

@jrudolph
Created May 3, 2011 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrudolph/953217 to your computer and use it in GitHub Desktop.
Save jrudolph/953217 to your computer and use it in GitHub Desktop.
PrivateShadowing
#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
package a
private[a] object Settings {
val X = 1
}
package b
object Settings {
val Y = 2
}
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