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
Check reference expression operator #1566
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1566 +/- ##
=======================================
Coverage 74.73% 74.73%
=======================================
Files 289 289
Lines 55659 55673 +14
=======================================
+ Hits 41595 41607 +12
- Misses 12563 12565 +2
Partials 1501 1501
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 07c27c2 Results
|
I agree that this is an improvement over not doing the check, but I think this error is going to be very confusing to people. If people were using |
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.
This sounds like a good temporary solution to me
@dsainati1 Agreed. We won't merge this for Secure Cadence, I just opened it so we would at least start to do something about it, even if just reporting some error until we have a proper decision about what to do here (e.g change the syntax, like discussed before).
|
Replaced by #1661 |
Closes #1406
Description
Reference expressions and casting expressions have the same syntax, so reference expressions are parsed by parsing casting expressions.
Ensure the casting expression has the correct operator (
as
).At least make the current syntax / parsing strict, but we still might want to change the syntax has discussed.
master
branchFiles changed
in the Github PR explorer