Skip to content

Conversation

@mame
Copy link
Member

@mame mame commented Aug 26, 2025

This is an experimental implementation for
https://bugs.ruby-lang.org/issues/21543.

test.rb:2:in 'Object#foo': wrong number of arguments (given 1, expected 2) (ArgumentError)

    caller: test.rb:6
    |   foo(1)
        ^^^
    callee: test.rb:2
    | def foo(x, y)
          ^^^
        from test.rb:6:in 'Object#bar'
        from test.rb:10:in 'Object#baz'
        from test.rb:13:in '<main>'

This change requires ruby/ruby#14341 and ruby/ruby#14342

@mame mame force-pushed the snippet-for-wrong-number-of-arguments branch 2 times, most recently from 626ac96 to 4334b08 Compare August 26, 2025 10:23
This is an experimental implementation for
https://bugs.ruby-lang.org/issues/21543.

```
test.rb:2:in 'Object#foo': wrong number of arguments (given 1, expected 2) (ArgumentError)

    caller: test.rb:6
    |   foo(1)
        ^^^
    callee: test.rb:2
    | def foo(x, y)
          ^^^
        from test.rb:6:in 'Object#bar'
        from test.rb:10:in 'Object#baz'
        from test.rb:13:in '<main>'
```
@mame mame force-pushed the snippet-for-wrong-number-of-arguments branch from 4334b08 to a4c8e03 Compare August 28, 2025 03:57
@mame mame merged commit 21e974e into ruby:master Aug 28, 2025
7 checks passed
@mame mame deleted the snippet-for-wrong-number-of-arguments branch August 28, 2025 06:26
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.

1 participant