From 7aaf7dac8d312b6b1a27ea8240d2818c5c77ee17 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 30 Aug 2007 18:49:00 +0000 Subject: * parse.y (assignable_gen): ignore already erred names. * parse.y (shadowing_lvar_gen): always make new block local variable when shadowing outer local variable. [ruby-dev:31507] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_massign.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bootstraptest/test_massign.rb') diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb index c95c178721..0c73b71461 100644 --- a/bootstraptest/test_massign.rb +++ b/bootstraptest/test_massign.rb @@ -13,6 +13,12 @@ assert_equal '[1, 2]', %q{ ans } +assert_equal 'ok', %q{ + r = :ok + :ng.tap {|(r)|} + r +}, '[ruby-dev:31507]' + =begin # generated by this script: -- cgit v1.2.1