Skip to content

repl leaks inner object names #1370

Closed
Closed
@DarkDimius

Description

@DarkDimius

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions