summaryrefslogtreecommitdiff
path: root/bootstraptest/test_massign.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-30 18:49:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-30 18:49:00 +0000
commit7aaf7dac8d312b6b1a27ea8240d2818c5c77ee17 (patch)
tree12e2acf0563c5b6d05ae9c9f65adafa46be6fe3a /bootstraptest/test_massign.rb
parent70f5d818f8f4956354221e7977bb1b8b40c00a5a (diff)
* 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
Diffstat (limited to 'bootstraptest/test_massign.rb')
-rw-r--r--bootstraptest/test_massign.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb
index c95c178..0c73b71 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: