From d82f3e7d5cf98f484cd1b3ed397e45d2fd7cf806 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 3 Jul 2007 18:50:28 +0000 Subject: * compile.c (compile_massign): fix massign compilation (example: a, *v, (*x) = ...). [ruby-dev:31107] * bootstraptest/test_massign.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_massign.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bootstraptest/test_massign.rb') diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb index 61272a3942..d4fa5931d6 100644 --- a/bootstraptest/test_massign.rb +++ b/bootstraptest/test_massign.rb @@ -1,3 +1,6 @@ +assert_equal '[[1], 2, 3]', '*v1, (a, b) = [1,[2, 3]]; [v1, a, b]' +assert_equal '[[1], 2, 3]', '*v1,(*), (a, b) = [1,:x,[2, 3]]; [v1, a, b]' + =begin # generated by this script: -- cgit v1.2.3