summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-29 00:58:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-29 00:58:14 +0000
commit396e297f2d4b95cfe1cc70d75d73f6bd5a1be414 (patch)
tree52f6c16de4730aa5676c030fa3e822ca95e27f76 /parse.y
parentb4fef39a40db7783e639436ca2836cfb90c7bde9 (diff)
* eval.c (rb_call0): fix calling zsuper from a method with anonymous
rest argument. [ruby-dev:26639] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 9c3c3e0877..8dcdf0646d 100644
--- a/parse.y
+++ b/parse.y
@@ -8015,7 +8015,7 @@ new_args_gen(parser, m, o, r, b)
}
tmp = tmp->nd_next;
}
- if (r && !NIL_P(r)) {
+ if (RTEST(r)) {
if (arg_dup_check(r->nd_vid, m, list, r)) {
yyerror("duplicated rest argument name");
return 0;