Is there a way to declare an implicit val inside a for comprehension? September 3, 2023 by Tarik No, there isn’t. There is a ticket though: https://issues.scala-lang.org/browse/SI-2823