-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #2495: Improve error message #3804
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
Conversation
I think we should would avoid using REPL scripted tests to test error messages. It is very fragile. We'll have to fix the tests every time we change pretty printing, change the wording of the message... |
The idea of this test is to show that the pretty printed version looks as expected. This is the best that can be done for this issue. The alternative is not testing it. |
Yeah, I don't think this deserves a test. My opinion for error messages is to test that the right error message is emitted and that it contains the right semantic information (if any). But not test how it is pretty printed. I'll leave the last word to @smarter 😄 |
I will remove it, it will be partially tested by the old scripted test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, LGTM.
|The argument types of an anonymous function must be fully known. (SLS 8.5)""" | ||
i"""missing parameter type | ||
| | ||
|The argument types of an anonymous function must be fully known. (SLS 8.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to have this general reference at the end, and put more specific information before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of the missing parameter type
explaination.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also follows the old format in scalac that users said was clearer.
No description provided.