-
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
Convert generic container types on upcast #2567
Convert generic container types on upcast #2567
Conversation
…adence into sainati/capability-upcast-conversion
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.
Looks good!
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/entitlements commit c2dc828 Collapsed results for better readability
|
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!
Codecov Report
@@ Coverage Diff @@
## feature/entitlements #2567 +/- ##
========================================================
+ Coverage 78.62% 78.85% +0.23%
========================================================
Files 329 340 +11
Lines 75909 80329 +4420
========================================================
+ Hits 59683 63347 +3664
- Misses 14071 14683 +612
- Partials 2155 2299 +144
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Great work!
@SupunS could you please also have a look?
Co-authored-by: Supun Setunga <[email protected]>
…low/cadence into sainati/capability-upcast-conversion
As outlined in onflow/flips#54, entitlements should be "erased" at runtime, and should exactly match the static entitlements present on any static reference types. This is currently implemented for references by converting all reference types on transfer, but should also work for any types that may contain references.
This PR changes any types that may potentially contain references (optionals, arrays, dictionaries and capabilities) to convert on transfer as well.
master
branchFiles changed
in the Github PR explorer