Project

General

Profile

Feature #10617 ยป 0001-turn-parse-error-on-multiple-assignment-into-warning.patch

View differences:

parse.y
9437 9437
{
9438 9438
    switch (nd_type(node)) {
9439 9439
      case NODE_MASGN:
9440
	yyerror("multiple assignment in conditional");
9441
	return 1;
9442

  
9440
        parser_warn(node->nd_value, "multiple assignment in conditional");
9443 9441
      case NODE_LASGN:
9444 9442
      case NODE_DASGN:
9445 9443
      case NODE_DASGN_CURR:
9446
-