quicklens
quicklens copied to clipboard
Setting a Double field using a Int doesn't work in Scala3
To reproduce:
case class X(a: Double)
X(0).modify(_.a).setTo(1)
Originally reported as part of #114
Hmmm, this might be impossible to solve on quicklens
side, since this seems to be a change (or bug) in type inference.
Scala 3 ifers [X, AnyVal]
, when Scala 2 inferred [X, Double]
scastie
with -Xprint:typer
: https://scastie.scala-lang.org/KacperFKorban/oOOuhGD6RmagHFbyIozIyQ/4