You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the discussion on that issue seemed to point to not using case classes as the root of the problem. It seems like a bit of a gotcha that adding another unapply method breaks the out-of-the-box pattern matching for case classes.
The text was updated successfully, but these errors were encountered:
reproduction steps
using Scala 2.13.4, I have a case class with an additional custom unapply method.
problem
Gives a warning:
Adding a further unapply method as suggested here #12232 did make the warning go away:
However, the discussion on that issue seemed to point to not using case classes as the root of the problem. It seems like a bit of a gotcha that adding another unapply method breaks the out-of-the-box pattern matching for case classes.
The text was updated successfully, but these errors were encountered: