* eval.c (when_check): arbitrary values are allowed after splats.
fixed: [ruby-dev:28879] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b6630a375d
commit
ab15a714f8
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jun 28 13:51:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (when_check): arbitrary values are allowed after splats.
|
||||||
|
fixed: [ruby-dev:28879]
|
||||||
|
|
||||||
Wed Jun 28 09:16:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Wed Jun 28 09:16:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (primary): remove meaningless else-only case statement
|
* parse.y (primary): remove meaningless else-only case statement
|
||||||
|
3
eval.c
3
eval.c
@ -2711,7 +2711,8 @@ when_check(NODE *tag, VALUE val, VALUE self)
|
|||||||
if (when_check(tag->nd_head, val, self)) return Qtrue;
|
if (when_check(tag->nd_head, val, self)) return Qtrue;
|
||||||
return when_check(tag->nd_body, val, self);
|
return when_check(tag->nd_body, val, self);
|
||||||
default:
|
default:
|
||||||
unknown_node(tag);
|
if (when_cond(val, rb_eval(self, tag))) return Qtrue;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user