diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-27 09:35:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-27 09:35:53 +0000 |
commit | 8f03e4d2c574a46c81a9c9a59472d650345de64a (patch) | |
tree | a146e3686e81c6a28c473f0959b56b5f0a396401 | |
parent | f0bb63782a2102cf5d353f9b0828370bb5ad85c6 (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 @@ -2624,7 +2624,7 @@ primary : literal | keyword_not '(' rparen { /*%%%*/ - $$ = NEW_LIT(Qtrue); + $$ = call_uni_op(cond(NEW_NIL()), '!'); /*% $$ = dispatch2(unary, ripper_intern("not"), Qnil); %*/ |