akka / akka-http

The Streaming-first HTTP server/module of Akka
https://doc.akka.io/docs/akka-http
Other
1.34k stars 594 forks source link

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

Open johanandren opened 1 month ago

johanandren commented 1 month ago

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