-
Notifications
You must be signed in to change notification settings - Fork 140
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
Rewrite owned intersection types in migration #3118
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit e60051d Collapsed results for better readability
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3118 +/- ##
==========================================
- Coverage 80.67% 80.56% -0.11%
==========================================
Files 379 379
Lines 91523 91576 +53
==========================================
- Hits 73834 73782 -52
- Misses 15047 15134 +87
- Partials 2642 2660 +18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I tried to add the rules to the entitlements migration in a2232d9. I refactored it and fixed some bugs and gaps along the way. I got the rules working by re-using However, I noticed there is one crucial exception: https://github.com/onflow/cadence/pull/3118/files#diff-8fed0196f6dd9c6e80c1943403eff29f29b7f4651dded1b7df9ffa1c6449e9afR892-R893: For the particular case This is currently difficult to implement, because the static type to sema type conversion looses the information that is necessary. I'll keep fixing this last issue tomorrow |
Improved the entitlements migration further in c10a6eb, unifying the authorization/entitlements calculation for static intersection types and in general for other entitlements-supporting types, and refactoring the migration to be mainly based on static types, only converting to sema types if needed. Before, the migration always converted static to sema, added entitlements, and converted back from sema to static, for the whole type. This also fixes the last edge case, |
Closes #3112
master
branchFiles changed
in the Github PR explorer