Skip to content

Explicit typed actor system to Http.apply does not compile on Scala 3 #4406

@johanandren

Description

@johanandren

Implicitly picking it up works but explicitly passing a typed actor system to the Scala extension like so: Http(system) does not compile because:

[error] -- [E007] Type Mismatch Error: /.../SomeClass.scala:47:21
[error] 47 |    val bound = Http(system).newServerAt(interface, port).bind(service)
[error]    |                     ^^^^^^
[error]    |    Found:    (system : akka.actor.typed.ActorSystem[?])
[error]    |    Required: akka.actor.ActorSystem²
[error]    |
[error]    |    where:    ActorSystem  is a class in package akka.actor.typed
[error]    |              ActorSystem² is a class in package akka.actor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions