-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
fix: allow accessing members of constant address #3261
Conversation
Is this valid syntax? I think it should be, but trying to figure out the required changes to the lark grammar.
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #3261 +/- ##
==========================================
- Coverage 88.88% 88.87% -0.01%
==========================================
Files 84 84
Lines 10598 10592 -6
Branches 2212 2212
==========================================
- Hits 9420 9414 -6
Misses 769 769
Partials 409 409
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Its not currently valid, no. I think it would rare you would need to use it like this, so I have no problem forcing people to do it a different way |
This would fail the grammar test, but would actually compile in 0.3.7 and the latest master branch. It is actually similar to this contract after constant folding.
|
What I did
Fix #3258.
How I did it
Remove
visit_Hex
, which was overridingvisit_Constant
. This caused the propagated type to be ignored and overriden with theNone
value.On an unrelated but similar reasoning, I also removed
visit_Int
andvisit_Bytes
.How to verify it
See tests.
Commit message
Description for the changelog
Allow accessing members of constant address
Cute Animal Picture