-
Notifications
You must be signed in to change notification settings - Fork 164
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
Unsigned integers no wrap II #2189
Conversation
These are compile-time cases
--> tests/errors/unsigned_02.py:3:10 | ||
| | ||
3 | i: u16 = -u16(5) | ||
| ^^^^^^^ use -i32(u) for signed result |
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 would be great if it could copy the actual expression inside:
| ^^^^^^^ use -i32(u) for signed result | |
| ^^^^^^^ use -i32(5) for signed result |
But I guess for that we would have to have an ASR -> Python printer, which we plan to, but not right now. So we can do that later.
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.
Looks great!
Thank you so much for the quick review! |
fixes #2173
towards #2176 (comment)