We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have something like this
case class State(foo: Int) class Store { var state = State(100) inline def set[A](inline path: State => A, value: A): Unit = { state = modify(state)(path).setTo(value) } }
I what to implement set method so I could use it like this set(_.foo, 200) But there is an error
set
set(_.foo, 200)
set(_.foo, 200) ^^^^^^^^^ Unsupported path element. Path must have shape: _.field1.field2.each.field3.(...), got: ((_$16: State) => _$16.foo)
Is there any way to do it?
The text was updated successfully, but these errors were encountered:
Extract focuses from nested Inlined trees when determining
Inlined
9169d90
modification path in Scala 3 macro closes #159
KacperFKorban
Successfully merging a pull request may close this issue.
I have something like this
I what to implement
set
method so I could use it like thisset(_.foo, 200)
But there is an error
Is there any way to do it?
The text was updated successfully, but these errors were encountered: