Skip to content

Commit ff55ea5

Browse files
committed
Sidestep scala 3 type inference bug
1 parent cb2bb58 commit ff55ea5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/shared/src/main/scala/org/typelevel/log4cats/LocalLogContext.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ object LocalLogContext {
8181
def ask[E2 >: Map[String, String]]: F[E2] =
8282
asks
8383
.traverse(_.ask[Map[String, String]])
84-
.map(_.reduceLeft(_ ++ _))
84+
.map[Map[String, String]](_.reduceLeft(_ ++ _))
85+
.widen // tparam on `map` and `widen` to make scala 3 happy
8586
def prependLowPriority(ask: AskContext[F]): MultiAskContext[F] =
8687
new MultiAskContext(ask +: asks)
8788
def appendHighPriority(ask: AskContext[F]): MultiAskContext[F] =

0 commit comments

Comments
 (0)