You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to reproduce a Scala 2.12.4 bug with dotty 0.5.0-RC1, see original ticket scala/bug#1800
I encountered this bug today running scalafix ExplicitResultTypes on the akka codebase, here is a minimized reproduction
packagea {
private[a] objectb {
classB
}
objectc { defgetB: b.B=new b.B() }
}
packaged {
objecte {
valf= a.c.getB
// val g: a.b.B = a.c.getB // Error// scala 2.x// foo.scala:10: error: object b in package a cannot be accessed in package a// val g: a.b.B = a.c.getB// ^// dotty// -- Error: foo.scala:10:13 ------------------------------------------------------// 10 | val g: a.b.B = a.c.getB // Error: does not compile// | ^^^// |object b in package a cannot be accessed as a member of a.type from module class e$.// one error found
}
}
The text was updated successfully, but these errors were encountered:
By qualified private do you mean private[enclosing]? If yes, you can't possibly eliminate that altogether. That's the only thing that allows to maintain a semblance of distinction between a public API and a private API. Without that, evolving libraries in backward source/binary compatible ways will become completely impossible.
I was able to reproduce a Scala 2.12.4 bug with dotty 0.5.0-RC1, see original ticket scala/bug#1800
I encountered this bug today running scalafix ExplicitResultTypes on the akka codebase, here is a minimized reproduction
The text was updated successfully, but these errors were encountered: