akka-http icon indicating copy to clipboard operation
akka-http copied to clipboard

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

Open johanandren opened this issue 1 year ago • 0 comments

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

johanandren avatar May 20 '24 12:05 johanandren