-
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
Improve result
variable
#3589
Improve result
variable
#3589
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 075bfc7 Collapsed results for better readability
|
Never thought before but is there any value of post condition accessing local scope of the function ? I think I haven't seen any usage like that, also feels a bit strange when I think about it. Global scope ( and self ), input and output feels should be enough, if that is the case, maybe pushing function body one level down can be some solution. |
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.
Only declare the result variable if post conditions are declared
How does this work with inherited post conditions? Can you maybe add some tests?
… better, dedicated error
63e56c1
to
e94adb3
Compare
Co-authored-by: Supun Setunga <supun.setunga@gmail.com>
Closes #774
Description
result
variable if post conditions are declaredBest viewed without whitespace changes
master
branchFiles changed
in the Github PR explorer