We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
contract Test { a: Int; init() { self.a = (1 << 2) + 3; } }
contract Test { a: Int; init() { self.a = 1 << 2 + 3; } }
getPrecedence doesn't have a case for << or '>>', and their priority is inferred to be 11, while by the grammar it should have been 7.5.
getPrecedence
<<
11
7.5
After printing the code self.a is set to 32, while previously it was 7.
self.a
32
7
Pretty-printer should not change behavior.
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Are you using the latest released (or pre-released, a.k.a. "next") version?
Tact source code
Relevant Tact/build system log output
What happened?
getPrecedence
doesn't have a case for<<
or '>>', and their priority is inferred to be11
, while by the grammar it should have been7.5
.After printing the code
self.a
is set to32
, while previously it was7
.What did you expect?
Pretty-printer should not change behavior.
Steps to reproduce
No response
How do you run Tact?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: