Skip to content

Conversation

@stepinto
Copy link
Contributor

We should never replace return statements to break 'run inside closures. Refer to test case gl_issue_41 for an example.

@robjtede
Copy link
Member

small CI fix to be made, lgtm other than that

@stepinto stepinto force-pushed the fix_return_in_closure_0913 branch from 558fef7 to caaba47 Compare September 16, 2025 11:00
@stepinto
Copy link
Contributor Author

small CI fix to be made, lgtm other than that

Fixed the build warning. Thank you.

We should never replace return statements to `break 'run` inside
closures.  Refer to test case `gl_issue_41` for an example.
@stepinto stepinto force-pushed the fix_return_in_closure_0913 branch from caaba47 to f65810a Compare September 16, 2025 11:33
Copy link
Member

@robjtede robjtede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍🏻

@robjtede robjtede linked an issue Nov 10, 2025 that may be closed by this pull request
@robjtede robjtede changed the title Fix issue #41 handle return statement inside clsoure handle return statement inside clsoure Nov 10, 2025
@robjtede robjtede merged commit 0b2c8cb into x52dev:main Nov 10, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code with return statment in closure does not compile

2 participants