summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-03-30 11:39:27 -0700
committerJeremy Evans <code@jeremyevans.net>2022-03-30 11:39:27 -0700
commit79b59fee16b33527eba348b63c9233d58e396c8c (patch)
tree26441338d33c37323982ad9ed6f7549bf0105973
parent0dd63216e39433511963c4a0269073430c2e664f (diff)
Update NEWS for proc autosplat change
-rw-r--r--NEWS.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 0be02b3030..47bf71b561 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -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:
@@ -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