-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Better selection of name for ReassignmentToVal error message #22823
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
base: main
Are you sure you want to change the base?
Conversation
assigning @mbovel as punishment for deserting us :-P I put some commentary on the ticket about how we found our way to this approach so then our questions for review are:
|
I'm also wondering why it wasn't done this way in the first place, tbh. like does using a symbol (instead of a plain name) in an error message sometimes improve message quality somehow...? |
If I import a symbol, it might be renamed. Also, LHS of an assignment can be Scala 2 expends some LOC on this error case. There is |
I see. In that case, it sounds like it's worth doing some further exploring of whether we can get a hold of the right |
(I've assigned myself as a backstop, but @iusildra @jan-pieter @ajafri2001 if any of you wants to dig into this first, feel free, as I won't get to it right away.) |
I submitted #22869 where I'll add spree participants and deserters as co-conspirators. That just uses the other tree. But I'd also like to add the addendum when |
Many months ago, I saved the format of the co-author tag so I wouldn't forget it, and what I saved was:
|
(from today's Scala 3 compiler spree)
Use name from tree when it is a NameTree for the ReassignmentToVal error message
Fixes #22671