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
SrTobi
changed the title
Crash when sequence and product-sequence match are possible and intermediary _X is not defined
Crash on sequencet-match if Product is inherited and intermediary _X is not defined
Dec 7, 2023
This is carefully engineered to confuse the compiler on multiple levels. Fixing it will be quite a challenge. Is there a real world example where this happened? Is there a workaround?
I came up with these test cases by looking at the specification and coming up with edge cases to test our own implementation of the unapply/unapplySeq match semantics in the intellij-scala plugin. So no, these are not real world examples, just what the specification allows.
dwijnand
changed the title
Crash on sequencet-match if Product is inherited and intermediary _X is not defined
Crash on sequence-match if Product is inherited and intermediary _X is not defined
Dec 15, 2023
Compiler version
3.3.1
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: