Skip to content

Conversation

@Earlopain
Copy link
Contributor

Closes #1004

Upstream commit ruby/ruby@a850cd1 is specific to 3.3, previous versions already did not allow this.
See https://bugs.ruby-lang.org/issues/20392 for a bit more info.

But since the super node has has a different shape, it behaved unexpectedly in earlier ruby versions already.

It allowed forwarding with zero and one arguments and failed for more. Now it correctly rejects as invalid syntax, except in Ruby 3.3, that fix has not been backported.

…t block

Upstream commit ruby/ruby@a850cd1 is specific to 3.3,
previous versions already did not allow this.
See https://bugs.ruby-lang.org/issues/20392 for a bit more info.

But since the super node has has a different shape, it behaved unexpectedly in earlier ruby versions already.

It allowed forwarding with zero and one arguments and failed for more. Now correctly rejects it as invalid syntax, except in Ruby 3.3, that fix has not been backported.
@koic koic merged commit d34616f into whitequark:master Mar 31, 2025
9 checks passed
@Earlopain Earlopain deleted the super-block-args-forwarding branch March 31, 2025 06:25
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.

ruby/ruby@a850cd1

3 participants