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
# Description
## Problem\*
Resolves#2660
## Summary\*
Parse negative literals so that they can be used in globals
## Additional Context
## Documentation\*
Check one:
- [X] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
# PR Checklist\*
- [X] I have tested the changes locally.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Aim
Definition of global variables using negative values
global NEGATIVE_1 = -1
Local variables using
let
work as expected:Expected Behavior
While I can write a 'sausage' like
global NEGATIVE_1 = 0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000000
I'd really-really love to avoid it :)
Sausages work best first in the frying pan, then in my belly 😁
Bug
To Reproduce
global NEGATIVE_1 = -1
or any other numberInstallation Method
Binary
Nargo Version
0.11.1
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: