From 7f69d4e41f1cd77e142b786596dd005891a233f3 Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 26 Oct 2018 02:54:01 +0000 Subject: 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]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') 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] -- cgit v1.2.3