Skip to content

Reject return and similar with block pass argument#4072

Merged
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:return-block-pass
Apr 9, 2026
Merged

Reject return and similar with block pass argument#4072
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:return-block-pass

Conversation

@Earlopain
Copy link
Copy Markdown
Collaborator

Same handling as for yield. Fixes [Bug #21988]

Same handling as for `yield`. Fixes [Bug #21988]
@kddnewton kddnewton merged commit 514afff into ruby:main Apr 9, 2026
68 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.

2 participants