Skip to content

"cannot resolve reference to type" when type member of self-type appears in method type #11226

Closed
@andreaTP

Description

@andreaTP

Compiler version

3.0.0-M3

Minimized code

I haven't managed to minimize the problem but is reproducible here:
https://github.com/akka/akka/tree/repro-scala3

sbt -Dakka.build.scalaVersion=3.0 akka-actor/compile

Output

[error] -- Error: /Users/andreatp/workspace/tmp/akka/akka-actor/src/main/scala/akka/event/ActorClassificationUnsubscriber.scala:61:6 
[error] 61 |      bus.unsubscribe(actor)
[error]    |      ^
[error]    |cannot resolve reference to type (ActorClassificationUnsubscriber.this.bus : 
[error]    |  akka.event.ManagedActorClassification
[error]    |).Subscriber
[error]    |the classfile defining the type might be missing from the classpath
[error] one error found

Expectation

Compiles as with scalac 2.12 - 2.13

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions