From f3aa3cd8259304375ff250b4980db49ac024e747 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 7 Jan 2018 11:51:30 +0000 Subject: [PATCH] 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 --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index efee472e23..1e6fbf46e0 100644 --- a/parse.y +++ b/parse.y @@ -2901,7 +2901,7 @@ primary : literal { /*%%%*/ $$ = NEW_CASE2($3); - nd_set_line($3, $1); + nd_set_line($$, $1); $$->nd_loc = @$; /*% $$ = dispatch2(case, Qnil, $3);