Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scabug opened this issue Oct 11, 2008 · 6 comments
Labels
access fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Milestone

Comments

@scabug
Copy link

scabug commented Oct 11, 2008

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.

@scabug
Copy link
Author

scabug commented Oct 11, 2008

Imported From: https://issues.scala-lang.org/browse/SI-1415?orig=1
Reporter: @DRMacIver
Attachments:

  • private.scala (created on Oct 11, 2008 10:14:17 AM UTC, 105 bytes)

@scabug
Copy link
Author

scabug commented Oct 13, 2008

@paulp said:
For what it's worth, if Blip is a class instead of an object AND you respecify the scope, this works. Neither of those alterations by itself changes the outcome.

trait Foo {
  trait Bar {
    private[Foo] def baz;
  }

  class Blip extends Bar {
    private[Foo] def baz = { }
  }
}

@scabug
Copy link
Author

scabug commented Mar 15, 2013

@adriaanm said:
Un-assigning to foster work stealing, as announced in https://groups.google.com/forum/?fromgroups=#!topic/scala-internals/o8WG4plpNkw

@scabug
Copy link
Author

scabug commented Jul 10, 2013

@adriaanm said:
Unassigning and rescheduling to M6 as previous deadline was missed.

@scabug
Copy link
Author

scabug commented Aug 5, 2014

@gkossakowski said:
The 2.11.2 is out so I'm rescheduling the issue for 2.11.3.

@scabug
Copy link
Author

scabug commented Nov 4, 2014

@retronym said:
Updating fix-by version to 2.11.5.

@scabug scabug added the access label Apr 6, 2017
@scabug scabug added this to the Backlog milestone Apr 6, 2017
@som-snytt som-snytt added the fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) label Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
access fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Projects
None yet
Development

No branches or pull requests

2 participants