Skip to content

Instantly share code, notes, and snippets.

@retronym
Created February 2, 2014 16:32
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 retronym/8770977 to your computer and use it in GitHub Desktop.
Save retronym/8770977 to your computer and use it in GitHub Desktop.
lubs, inference, and access
object Test {
trait T
private trait U
object O extends U
object P extends U
val x = {
// you want to infer List[T] here so we don't later infer a leaky private type for `x`?
val y = List(O, P)
y
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment