summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-04 07:17:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-04 07:17:16 +0000
commit19611576ca622e33e7063f9b9e4427330bf89208 (patch)
treea33e22af574507682208fc2375db99bb7251b4ac
parent5881e4fcd646b5d4c735477f8559ff6982073c5b (diff)
downloadruby-19611576ca622e33e7063f9b9e4427330bf89208.tar.gz
ruby-19611576ca622e33e7063f9b9e4427330bf89208.tar.xz
ruby-19611576ca622e33e7063f9b9e4427330bf89208.zip
* parse.y (block_param): should interpret single parenthesized
left hand side expression. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 620b16081..ef58936c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 4 15:46:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (block_param): should interpret single parenthesized
+ left hand side expression.
+
Wed Oct 4 08:52:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/optparse/test_getopts.rb: changed the class name of test case
diff --git a/parse.y b/parse.y
index b3338f97a..6d7e7c901 100644
--- a/parse.y
+++ b/parse.y
@@ -2861,7 +2861,7 @@ block_param1 : bv_decl
| tLPAREN block_param rparen
{
/*%%%*/
- $$ = $2;
+ $$ = NEW_MASGN(NEW_LIST($2), 0);
/*%
$$ = dispatch1(mlhs_paren, $2);
%*/