Closed
Description
taken from http://scalapuzzlers.com/#pzzlr-015
scala> object Lives {
class Private {
def foo1: Any = new Private.C1
def foo2: Any = new Private.C2
}
object Private {
class C1 private {}
private class C2 {}
}
}
^
def foo1: Any = new Private.C1
<console>:9: error: constructor C1 cannot be accessed as a member of line14$object.$iw.$iw.Lives.Private.C1 from class Private.
line14$object.$iw.$iw.
shoundn't be shown to user.