Skip to content

Commit

Permalink
Update NEWS for proc autosplat change
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Mar 30, 2022
1 parent 0dd6321 commit 79b59fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions NEWS.md
Expand Up @@ -20,6 +20,17 @@ Note that each entry is kept to a minimum, see links for details.
end
```

* A proc that accepts a single positional argument and keywords will
no longer autosplat. [[Bug #18633]]

```ruby
proc{|a, **k| a}.call([1, 2])
# Ruby 3.1 and before
# => 1
# Ruby 3.2 and after
# => [1, 2]
```

* Constant assignment evaluation order for constants set on explicit
objects has been made consistent with single attribute assignment
evaluation order. With this code:
Expand Down Expand Up @@ -204,3 +215,4 @@ The following deprecated APIs are removed.
[Feature #18571]: https://bugs.ruby-lang.org/issues/18571
[Feature #18585]: https://bugs.ruby-lang.org/issues/18585
[Feature #18598]: https://bugs.ruby-lang.org/issues/18598
[Bug #18633]: https://bugs.ruby-lang.org/issues/18633

0 comments on commit 79b59fe

Please sign in to comment.