-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ClassCastException when matching on ValueOf #12366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This doesn't look like a GADT problem. We infer no GADT constraints here. It seems like a problem with value classes perhaps?
After
Note the call to I can keep debugging this in my spare time, but perhaps it'd be trivial to fix for someone with an understanding of how value types are desugared? Additional data point:
Note how only one |
Here is a variation of
tests/run/i12194.scala
that leads to aClassCastException
:The text was updated successfully, but these errors were encountered: