Bug when pattern matching on existential values #9247
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
patmat
Milestone
Existentials as arguments to
unapply
result in a compilation error:Minimal example:
yields
In contrast, a variant using universal types works just fine:
Might be related to the following issues:
The text was updated successfully, but these errors were encountered: