summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-13 05:36:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-13 05:36:26 +0000
commit134d1ce89255f94c42730c814dbf3efed1c557d2 (patch)
tree15ea442be48eecefdb8a9b3c282c9af9422d0568 /parse.y
parent1ea1d2e4a7911f5c43fdea2daadc2ea9201d4a4d (diff)
parse.y: massign in cond
* parse.y (assign_in_cond): allow multiple assignment in conditional expression. [Feature #10617] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 0 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 1bc22071b5..b8b4a21fa6 100644
--- a/parse.y
+++ b/parse.y
@@ -9785,9 +9785,6 @@ assign_in_cond(struct parser_params *parser, NODE *node)
{
switch (nd_type(node)) {
case NODE_MASGN:
- yyerror("multiple assignment in conditional");
- return 1;
-
case NODE_LASGN:
case NODE_DASGN:
case NODE_DASGN_CURR: