Bug #8717 ยป negate_ratio_lit.patch
| parse.y | ||
|---|---|---|
|
| tUMINUS_NUM tRATIONAL %prec tLOWEST
|
||
|
{
|
||
|
/*%%%*/
|
||
|
$$ = negate_lit($2);
|
||
|
$$ = NEW_CALL($2, tUMINUS, 0);
|
||
|
/*%
|
||
|
$$ = dispatch2(unary, ripper_intern("-@"), $2);
|
||
|
%*/
|
||
| ... | ... | |
|
| tUMINUS_NUM tIMAGINARY %prec tLOWEST
|
||
|
{
|
||
|
/*%%%*/
|
||
|
$$ = negate_lit($2);
|
||
|
$$ = NEW_CALL($2, tUMINUS, 0);
|
||
|
/*%
|
||
|
$$ = dispatch2(unary, ripper_intern("-@"), $2);
|
||
|
%*/
|
||