diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-06-13 14:27:08 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-06-13 18:46:02 +0000 |
commit | 0321f2c8fe7520762af49c4c4e1598ada964c402 (patch) | |
tree | f28c0b4f100c340b15c825caebf29ad811c78905 /spec/ruby/library/date/england_spec.rb | |
parent | ffd895156f230e684bed36e0b3c724071ad31993 (diff) |
When an implicit array is used in a write, is causes the whole
expression to become a statement. For example:
```ruby
a = *b
a = 1, 2, 3
```
Even though these expressions are exactly equivalent to their
explicit array counterparts:
```ruby
a = [*b]
a = [1, 2, 3]
```
As such, these expressions cannot be joined with other expressions
by operators or modifiers except if, unless, while, until, or
rescue.
https://github.com/ruby/prism/commit/7cd2407272
Diffstat (limited to 'spec/ruby/library/date/england_spec.rb')
0 files changed, 0 insertions, 0 deletions