scope escaping shadow of peter pan
I just thought the error message the following code generates was a little silly.
object PeterPan {
private case class Shadow(length: Int)
def shadow = Shadow(10)
}
error: private class Shadow escapes its defining scope as part of type PeterPan.Shadow