Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting a Double field using a Int doesn't work in Scala3 #116

Open
adamw opened this issue Sep 11, 2022 · 1 comment
Open

Setting a Double field using a Int doesn't work in Scala3 #116

adamw opened this issue Sep 11, 2022 · 1 comment

Comments

@adamw
Copy link
Member

adamw commented Sep 11, 2022

To reproduce:

case class X(a: Double)
X(0).modify(_.a).setTo(1)

Originally reported as part of #114

@KacperFKorban
Copy link
Collaborator

KacperFKorban commented Sep 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants