-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Named unapply selectors accept random names #22192
Comments
The problem is most likely that the |
I fixed this also by accident, not sure if this is correct approach. I didn't see this issue. |
@rochala I don't think that it's the same issue. This one is related to the compiler not checking the names of the fields, not the combinations of named/unnamed patterns. |
Right, your error is still suppresed by tryEither...
|
My fix then is not complete, as it will also not report anything from that line, while it should. |
We can just treat them as two separate error (which they sort of are). |
Compiler version
91063dd
Minimized code
Output
Expectation
Compilation error, that
iam
andconfused
aren't fields of the classCity
The text was updated successfully, but these errors were encountered: