diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-13 05:36:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-13 05:36:26 +0000 |
commit | 134d1ce89255f94c42730c814dbf3efed1c557d2 (patch) | |
tree | 15ea442be48eecefdb8a9b3c282c9af9422d0568 /parse.y | |
parent | 1ea1d2e4a7911f5c43fdea2daadc2ea9201d4a4d (diff) | |
download | ruby-134d1ce89255f94c42730c814dbf3efed1c557d2.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.y | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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: |