diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-05-14 22:16:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-05-14 22:16:15 +0900 |
commit | 91c004885fc75a93cadf0094fa86ec3bd0ec25f5 (patch) | |
tree | e759ddd8c8c6c116e5fda7ac0b13329aaaa0ea5d /test/ruby/test_syntax.rb | |
parent | bdaa491565e31e3615d5da61551e08c7868db272 (diff) |
[Bug #19025] Numbered parameter names are always local variables
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7810
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 4c0e58cc7b..b920dacc4a 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1672,6 +1672,7 @@ eom } assert_valid_syntax("proc {def foo(_);end;_1}") + assert_valid_syntax("p { [_1 **2] }") end def test_value_expr_in_condition |