Created
February 2, 2014 16:32
-
-
Save retronym/8770977 to your computer and use it in GitHub Desktop.
lubs, inference, and access
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
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