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
-- [E008] NotFoundError:/Users/wmazur/projects/dotty/bisect/main.scala:6:15-6|valx= self.name
|^^^^^^^^^|value name is not a member of CrudService[?[_$2]] &Foo[F] - did you mean (Foo.this:CrudService[?[_$2]] &Foo[F]).name?
Expectation
I'm not sure if it's a fix of corner case or real regression, it's only present when using at least 1 wildcard type. When defining self: CrudService[F] => it fails with every stable Scala version
> scala-cli compile --server=false bisect/main.scala -S3.0-- [E008] NotFoundError:/Users/wmazur/projects/dotty/bisect/main.scala:6:15-6|valx= self.name
|^^^^^^^^^|value name is not a member of CrudService[F] &Foo[F] - did you mean (Foo.this:CrudService[F] &Foo[F]).name?
The text was updated successfully, but these errors were encountered:
It looks like the type parameters were only hiding the original problem. The snippet below compiles in scala 2 but doesn't compile in any release of scala 3
It seems like the problem is in the clash of names between the parameter name: String of the subclass CrudService and the parameter member val name: String of the superclass Service.
If we remove the clash, e.g.
Previously, we rejected the case where a symbol of a self type selection
was private if it was not of the enclosing class. But that symbol could
shadow a non-private symbol in a base class, so have to treat that case
as well.
Fixes#18351
Uh oh!
There was an error while loading. Please reload this page.
Regression found in Open CB for ist-dsi/scala-keystone-client - build logs
Compiler version
3.3.1-RC1-bin-20230204-a356581-NIGHTLY
3.3.1-RC4
Bisect points to 11854bb
If you're not sure what version you're using, run
print scalaVersion
from sbt(if you're running scalac manually, use
scalac -version
instead).Minimized code
Output
Expectation
I'm not sure if it's a fix of corner case or real regression, it's only present when using at least 1 wildcard type. When defining
self: CrudService[F] =>
it fails with every stable Scala versionThe text was updated successfully, but these errors were encountered: