From ac47d6a8cf97175e667374ddd71ad5005a421e1d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 31 Dec 2014 07:48:47 +0000 Subject: parse.y: disable past scope warnings * parse.y (gettable_gen): disable warnings of possible reference to a local variable defined in a past scope. [ruby-core:67162] [Bug #10661] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_parse.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby/test_parse.rb') diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 38dca83053..43de64be73 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -874,7 +874,9 @@ x = __ENCODING__ assert_warning(/#{a}/) {eval("#{a} = 1; /(?<#{a}>)/ =~ ''")} end +=begin def test_past_scope_variable assert_warning(/past scope/) {catch {|tag| eval("BEGIN{throw tag}; tap {a = 1}; a")}} end +=end end -- cgit v1.2.3