Repository navigation
Pattern matching case classes and companion object #21582
|
hi, then we get a runtime error like this: Here the pattern matches on the case class companion object, is it really of type Example? Why is it even allowed in the pattern match by the compiler? You only get a warning if you put the compiler flag "-Ycheck-all-patmat" |
Answered by
dwijnand
Sep 13, 2024
Replies: 2 comments 2 replies
|
Hi, this seems to be a regression in Scala 3.5. Please open an issue ticket for it. Thanks! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Those warnings were moved to
-Wimplausible-patternsin 3.4. In #18093