ruby-changes:49539
From: nobu <ko1@a...>
Date: Sun, 7 Jan 2018 20:51:35 +0900 (JST)
Subject: [ruby-changes:49539] nobu:r61654 (trunk): parse.y: do not overwrite case_body position
nobu 2018-01-07 20:51:30 +0900 (Sun, 07 Jan 2018) New Revision: 61654 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61654 Log: parse.y: do not overwrite case_body position Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 61653) +++ parse.y (revision 61654) @@ -2901,7 +2901,7 @@ primary : literal https://github.com/ruby/ruby/blob/trunk/parse.y#L2901 { /*%%%*/ $$ = NEW_CASE2($3); - nd_set_line($3, $<num>1); + nd_set_line($$, $<num>1); $$->nd_loc = @$; /*% $$ = dispatch2(case, Qnil, $3); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/