aboutsummaryrefslogtreecommitdiffstats
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
commitfe840f2896472beea7d31be993eabfd49c27272b (patch)
tree15ea442be48eecefdb8a9b3c282c9af9422d0568 /parse.y
parentd7e08e3d398ac7a071ff3033aa52abe6ca6c55c1 (diff)
downloadruby-fe840f2896472beea7d31be993eabfd49c27272b.tar.gz
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: