-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to perform at
with a derived key in Scala 3
#210
Labels
Comments
I'm not sure if this is a bug in Scala 3, |
The map.get(Id[X](0))
map.updated(Id[X](0), Set.empty) |
Simplified repro which also does not work in Scala 3: import com.softwaremill.quicklens._
object Main {
class E
class X extends E
def main(args: Array[String]): Unit = {
val x = new X
val map = Map[E, Int](x -> 0)
map.modify(_.at(x)).using(s => s)
}
} |
OndrejSpanel
changed the title
Unable to perform
Unable to perform Dec 18, 2023
at
for covariant Map
in Scala 3at
with a derived key in Scala 3
OndrejSpanel
added a commit
to OndrejSpanel/quicklens
that referenced
this issue
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following code compiles and runs fine with Scala 2.13.12, but it does not compile with Scala 3.3.1:
The error is:
The text was updated successfully, but these errors were encountered: