Improve error messages for erroneous export
statements
#21976
Labels
area:export
area:reporting
Error reporting including formatting, implicit suggestions, etc
better-errors
Issues concerned with improving confusing/unhelpful diagnostic messages
itype:enhancement
Compiler version
3a5e137
Minimized example
Output Error/Warning message
Why this Error/Warning was not helpful
The first error message is helpful, but the rest are confusing.
Any
is inferred forfun2
most likely because of the previous error, and the last error shows some desugared/eta-expanded code, which is also a side effect of the previous error.Suggested improvement
The last error shouldn't be shown. One possibility is to make the positions the same for the first and last errors.
The text was updated successfully, but these errors were encountered: