summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:46:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-14 14:46:16 +0000
commitc6effd018238a263f32f5c1ec854e506fc5f2779 (patch)
tree989000d7e0c60c6c4a8c7daef104d08c6e57e914
parent41f3f0eb66c306d33c7c59c7ca4b199416be8196 (diff)
* parse.y (singleton): no need to re-create NODE_SELF() again.
[ruby-core:09177] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--parse.y9
2 files changed, 7 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 801e52d37d..8bb6b7f175 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/parse.y b/parse.y
index f82c7a90a8..5326daf79f 100644
--- a/parse.y
+++ b/parse.y
@@ -4240,13 +4240,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($$);
/*%
$$ = $1;
%*/