Actions
Bug #21988
closed`return a, &b` should be syntax error
Bug #21988:
`return a, &b` should be syntax error
ruby -v:
ruby 4.0.0 (2025-12-25 revision 553f1675f3) +YJIT +MN +PRISM [arm64-darwin24]
Actions
Added by tompng (tomoya ishida) 5 months ago. Updated 5 months ago.
Applied in changeset git|51a3f0847782095340df5dbc8fb87450dbc1fbe7.
[ruby/prism] Reject return and similar with block pass argument
Same handling as for yield. Fixes [Bug #21988]