akka/akka-core
Auf GitHub ansehenScala 3 type inference issue with ActorSystemSetups#get
Open
#29.990 geöffnet am 1. Feb. 2021
1 - triagedhelp wantedt:coret:scala-3
Repository-Metriken
- Stars
- (13.277 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 17h 35m) (11 gemergte PRs in 30 T)
Beschreibung
Investigate and see if it surfaces in user code or just some curiosity in the tests/interaction with Scalatest.
Needing that extra type ascription is curious, but only about some weirdness with Scalatest
===in Scala 3 right?(The signature of get is
ActorSystemSetups#get[T <: Setup: ClassTag]: Option[T]and we explicitly give it theT, sogethere returnsOption[DummySetup]andsetupisDummySetupsoSome(setup)should beSome[DummySetup]which extendsOption[DummySetup])
Originally posted by @johanandren in https://github.com/akka/akka/pull/29956#discussion_r565905744