You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the 0.3.x series (0.3.0 i think), i disallowed literals from being allowed in multiple type classes. it was to simplify the typechecker code. we could relax that, but just giving you the historical and implementation context for why the rules are currently the way they are.
that being said, having to do stuff convert(0xffff, uint16) is indeed kind of annoying.
Simple Summary
Vyper doesn't allow to do the following:
Sometimes it's more convenient/clear to use hex as literals for units, disallowing this seems unnecessary/is annoying.
Motivation
Make Vyper easier to use.
Specification
Remove this error and allowing casting of hex literals to uint types.
Backwards Compatibility
Backwards compatible because this was previously disallowed meaning no valid contracts contained this.
Dependencies
None.
References
None.
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: