1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (primary): empty not should call '!' on nil.

cf [ruby-dev:35227]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-06-27 09:35:53 +00:00
parent f0bb63782a
commit 8f03e4d2c5
2 changed files with 6 additions and 1 deletions

View file

@ -4,6 +4,11 @@ Fri Jun 27 17:45:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/erb/test_erb.rb: add tests for def_method.
Fri Jun 27 14:29:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (primary): empty not should call '!' on nil.
cf [ruby-dev:35227]
Fri Jun 27 14:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (vm_eval_body): if thrown exception is frozen, reraise it to

View file

@ -2624,7 +2624,7 @@ primary : literal
| keyword_not '(' rparen
{
/*%%%*/
$$ = NEW_LIT(Qtrue);
$$ = call_uni_op(cond(NEW_NIL()), '!');
/*%
$$ = dispatch2(unary, ripper_intern("not"), Qnil);
%*/