aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS.md
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-02-11 11:56:34 -0800
committerJeremy Evans <code@jeremyevans.net>2020-02-11 12:44:23 -0800
commit7a288df7b85d3565f369b305f225c2cd5baa5905 (patch)
tree994eea5130e4d2e78773b4ee383b63ff46d43740 /NEWS.md
parentea32715e004dc8f56dc599883d3183d7b2635f81 (diff)
downloadruby-7a288df7b85d3565f369b305f225c2cd5baa5905.tar.gz
Make yield in singleton class definitions in methods a SyntaxError
This behavior was deprecated in 2.7 and scheduled to be removed in 3.0. Calling yield in a class definition outside a method is now a SyntaxError instead of a LocalJumpError, as well.
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index f6bd2a4bb2..22943d64a7 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -12,6 +12,8 @@ sufficient information, see the ChangeLog file or Redmine
* $SAFE is now a normal global variable with no special behavior. [Feature #16131]
+* yield in singleton class definitions in methods is now a SyntaxError. [Feature #15575]
+
## Command line options
## Core classes updates (outstanding ones only)