-
Notifications
You must be signed in to change notification settings - Fork 755
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
Add record support to constants #15231
Add record support to constants #15231
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15231 +/- ##
============================================
+ Coverage 23.03% 23.23% +0.19%
- Complexity 4995 5065 +70
============================================
Files 1342 1342
Lines 67183 67497 +314
Branches 9112 9203 +91
============================================
+ Hits 15477 15680 +203
- Misses 50004 50079 +75
- Partials 1702 1738 +36
Continue to review full report at Codecov.
|
Closing the PR since this might be outdated after 2 months and no one bothered to even check and approve this PR. |
Purpose
This PR adds support to define record constants.
Resolves #14877
Sample usages
Simple constant map declarations
using records -
using anonymous records -
Nested constant map declaration
using records -
using anonymous record -
Constant references in maps
Simple constant map key references in maps
Chained constant map key references in maps
Equality checks
Usages which will result in panics
Check List