-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug] Need to revisit Move compiler error messages for V2 #9003
Comments
Looking at exp_builder.rs, I think we need to pass context into more of the calls so a correct context can be mentioned. For example, translate_exp() would be more useful if it could know " in final expression of expression sequence" + " in loop body" + " in function body" A few of these can be improved by just fixing what's there without adding another parameter. For example, I see that a loop body type check takes a context "in expression" which is uselessly general when it could be "in loop body". |
Notes on pending typing issues moved from PR 9002:
|
🐛 Bug
A few compiler error messages are confusing. Landing initial code is important, but we must remember to revisit error messages.
To reproduce
See discussions in #9002 (review).
We should enumerate them here, but that will take some time. Ideally, let's also do a diff vs move-compiler (v1) output and justify changes. But also go beyond that by revisiting the existing error messages.
Expected Behavior
Clear error messages.
System information
The text was updated successfully, but these errors were encountered: