Incorrect "assignment to val" error when assigning to a def
#22822
Labels
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:bug
Spree
Suitable for a future Spree
(noticed while working on #22671 at a spree)
Minimized code
Output
Expectation
x
isn't aval
, it's adef
, so it's nonsensical for the error to refer to "val x"The text was updated successfully, but these errors were encountered: