-
Notifications
You must be signed in to change notification settings - Fork 137
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
[stable-cadence] Fix field assignment via references #2868
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit 544aed4 Collapsed results for better readability
|
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2868 +/- ##
=======================================================
Coverage 79.97% 79.97%
=======================================================
Files 344 344
Lines 81213 81216 +3
=======================================================
+ Hits 64949 64952 +3
Misses 13959 13959
Partials 2305 2305
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
Nice! 👌
Description
During assignments, field-access should return the original type of the field, rather than the reference type (where applicable).
Currently, it returns the reference type, making it possible to assign
nil
to optional-reference-typed fields.master
branchFiles changed
in the Github PR explorer