summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-26 03:10:02 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-26 03:10:02 +0000
commitc9d720b873f570c734b136eb639f0be117803f5c (patch)
tree69da424273fcdac1321588b0d0cba395175f9e84 /NEWS
parentb171d9204637e3790fce7bfb32fe9a54014d8301 (diff)
parse.y: remove "shadowing outer local variable" warning
You can now write the following without warning. user = User.all.find {|user| cond(user) } Fixes [Feature #12490]. A patch from Soutaro Matsumoto <matsumoto@soutaro.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5e53d529f0..dfeca52e56 100644
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,11 @@ sufficient information, see the ChangeLog file or Redmine
* Non-Symbol key in keyword arguments hash causes an exception.
+* "shadowing outer local variable" warning was removed. [Feature #12490]
+ You can now write the following without warning.
+
+ user = User.all.find {|user| cond(user) }
+
=== Core classes updates (outstanding ones only)
[Array]