-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Make literals an error for tight packing (experimental 0.5.0) #3956
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
// ---- | ||
// TypeError: (117-118): The type of "int_const 1" was inferred as uint8. This is probably not desired. Use an explicit type. | ||
// Warning: (191-198): "sha3" has been deprecated in favour of "keccak256" | ||
// TypeError: (196-197): The type of "int_const 1" was inferred as uint8. This is probably not desired. Use an explicit type. |
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.
The message sounds a little weird, especially with these short sentences. What about Cannot perform packed encoding for a literal. Please convert it to an explicit type first.
@chriseth updated |
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.
We are currently only handling rational number types. I guess the issue is easier for strings, but we should check.
also things like |
I'd merge this as is and create a new PR which, if needed, fixes all these for string literals. |
Fixes #982.