diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-16 01:07:06 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-12-16 02:11:51 +0900 |
commit | 92b10f5be7453aceb5863e46ac775a4ddbf83b97 (patch) | |
tree | e6199a04d020f73ce7410199ef2f3ccf34820b06 /test/ruby | |
parent | 1ac0afab4da1986d6eefd421ca3877afd47d2a77 (diff) |
[Bug #20062] Fixed numbered parameter syntax error
At the method definition, the local scope that saves the context of
the numbered parameters needs to be pushed before saving.
Diffstat (limited to 'test/ruby')
-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 8643bfaf95..c6a6717d25 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1767,6 +1767,7 @@ eom assert_valid_syntax("proc {def foo(_);end;_1}") assert_valid_syntax("p { [_1 **2] }") + assert_valid_syntax("proc {_1;def foo();end;_1}") end def test_it |