1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: do not overwrite case_body position

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-01-07 11:51:30 +00:00
parent e1ac09dbe9
commit f3aa3cd825

View file

@ -2901,7 +2901,7 @@ primary : literal
{
/*%%%*/
$$ = NEW_CASE2($3);
nd_set_line($3, $<num>1);
nd_set_line($$, $<num>1);
$$->nd_loc = @$;
/*%
$$ = dispatch2(case, Qnil, $3);