-
Notifications
You must be signed in to change notification settings - Fork 138
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
Function types carry information about their access modifier #2919
Function types carry information about their access modifier #2919
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit 7e955a3 Collapsed results for better readability
|
It seems a bit odd that function types would carry access information. How/why is this needed for #2918? |
In order to determine the entitlements that the runtime values for |
For example, argument labels are not declared on the function type either, but are part of the variable and member, and checked at call-sites. Is the access of variables and member not sufficient here? |
This is not necessary for type checking, no. This is for the interpreter. If I have some attachment definition:
When we interpret an expression |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2919 +/- ##
==========================================================
+ Coverage 80.02% 80.05% +0.03%
==========================================================
Files 344 344
Lines 81580 81535 -45
==========================================================
- Hits 65281 65272 -9
+ Misses 13989 13955 -34
+ Partials 2310 2308 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@dsainati1 Let's maybe sync on this tomorrow, it might be easier to clarify this in a call |
…to sainati/function-types-carry-access
Necessary for the implementation of #2918
master
branchFiles changed
in the Github PR explorer