aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6f740e4c48..ce462d542c 100644
--- a/NEWS
+++ b/NEWS
@@ -188,6 +188,13 @@ sufficient information, see the ChangeLog file or Redmine
* +yield+ in singleton class syntax is warned and will be deprecated later [Feature #15575].
+ def foo
+ class << Object.new
+ yield
+ end
+ end
+ foo { p :ok } #=> warning: `yield' in class syntax will not be supported from Ruby 3.0.
+
* Argument forwarding by <code>(...)</code> is introduced. [Feature #16253]
def foo(...)