Form mappings in Scala3 - CaseClass.unapply no longer usable? #12292
-
I'm trying to migrate a Play 3.0.1 app from Scala 2.13.12 to Scala 3.3.1, but am running into a problem with my forms. The Scala3 compiler complains that my
On https://www.playframework.com/documentation/3.0.x/ScalaForms the example provided adds a custom
Do I have to manually specify each and every Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok, so this is not looking good: https://docs.scala-lang.org/scala3/guides/migration/incompat-other-changes.html#explicit-call-to-unapply Basically the
The Scala2 unapply method is quite useful for the Play forms, but the Scala 3 unapply method obviously is not. Not sure how to proceed here - adding hand-cranked unapply methods is not a palatable path forward. |
Beta Was this translation helpful? Give feedback.
Any options described in this thread help?