diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 9 |
2 files changed, 7 insertions, 7 deletions
@@ -1,3 +1,8 @@ +Sat Oct 14 23:39:50 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (singleton): no need to re-create NODE_SELF() again. + [ruby-core:09177] + Sat Oct 14 23:25:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * parse.y (parser_warning, parser_warn): some error message may @@ -2377,13 +2377,8 @@ opt_f_block_arg : ',' f_block_arg singleton : var_ref { - if ($1 && nd_type($1) == NODE_SELF) { - $$ = NEW_SELF(); - } - else { - $$ = $1; - value_expr($$); - } + $$ = $1; + value_expr($$); } | '(' {lex_state = EXPR_BEG;} expr opt_nl ')' { |