diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2025-08-26 19:11:28 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-08-28 06:26:06 +0000 |
| commit | 85e0c98cf0537c2049bfbbc2e21228264db90e00 (patch) | |
| tree | f25e343fcba3e26715ec591b76dac1c5fefe7f32 /test/ruby/test_integer_comb.rb | |
| parent | ed8fe53e80e16f9bff592333a3082981f39216e1 (diff) | |
[ruby/error_highlight] Show a dedicated snippet for "wrong number of arguments" error
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>'
```
https://github.com/ruby/error_highlight/commit/21e974e1c4
Diffstat (limited to 'test/ruby/test_integer_comb.rb')
0 files changed, 0 insertions, 0 deletions
