diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-22 09:49:26 -0500 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-27 12:52:07 -0500 |
| commit | 95064bb88db7ff0d71bf9c921b0b87fe1ae712d7 (patch) | |
| tree | 786f3b92cb470c8dac2054d79ef6bf83b107354b /test/ruby/test_variable.rb | |
| parent | 6d447fa35f877edae96e4a7f98c9f5e70219314b (diff) | |
[PRISM] Fix compilation for SplatNodes within ArrayNodes
SplatNodes within ArrayNodes (e.g. [*1..2, 3]) need to be special
cased in the compiler because they use a combination of concatarray
and newarray instructions to treat each sequence of splat or non-splat
elements as independent arrays which get concatenated. This commit
implements those cases.
Diffstat (limited to 'test/ruby/test_variable.rb')
0 files changed, 0 insertions, 0 deletions
