-
Notifications
You must be signed in to change notification settings - Fork 139
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
Return a copy for enum-typed members, during member-access via references #3357
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit e837800 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, thank your for picking this up!
Great to see it was easy to change 👌
Closes #3355
Description
Enums are immutable, so returning a copy during member access via references is safe.
master
branchFiles changed
in the Github PR explorer