summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-17 10:54:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-17 10:54:41 +0000
commitdd8a919a006794be7d88b9701724f784b9d9eb95 (patch)
treea67689588021ed91eb1f8e460e95427e5f78e403 /eval.c
parent1b6b119e2c65fae13cf419c40c04e6679007e662 (diff)
* eval.c (is_defined): NODE_ATTRASGN should be assignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index e6ae4c4..86c22ab 100644
--- a/eval.c
+++ b/eval.c
@@ -1881,7 +1881,6 @@ is_defined(self, node, buf)
goto check_bound;
case NODE_CALL:
- case NODE_ATTRASGN:
PUSH_TAG(PROT_NONE);
if ((state = EXEC_TAG()) == 0) {
val = rb_eval(self, node->nd_recv);
@@ -1937,6 +1936,7 @@ is_defined(self, node, buf)
return "false";
case NODE_ATTRSET:
+ case NODE_ATTRASGN:
case NODE_OP_ASGN1:
case NODE_OP_ASGN2:
case NODE_MASGN: