Skip to content

qualified private should be inherited member in object (when access boundary permits) #1415

Open
@scabug

Description

@scabug
trait Foo{
  trait Bar{
    private[Foo] def baz: Nothing
  }

  object Blip extends Bar{
    def baz = ???
  }
}

The method baz should be visible in Blip because it is scoped to Foo, but its presence in Blip is ignored and the compiler thinks the method has not been implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessfixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions