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 | 2caec365dab84a182ebc7a8bae2bbd6d6b71331b (patch) | |
| tree | a146e3686e81c6a28c473f0959b56b5f0a396401 | |
| parent | 26950a4a1281816f799d8ba221b193560327b2d4 (diff) | |
| download | ruby-2caec365dab84a182ebc7a8bae2bbd6d6b71331b.tar.gz ruby-2caec365dab84a182ebc7a8bae2bbd6d6b71331b.tar.xz ruby-2caec365dab84a182ebc7a8bae2bbd6d6b71331b.zip | |
* parse.y (primary): empty not should call '!' on nil.
cf [ruby-dev:35227]
git-svn-id: http://svn.ruby-lang.org/repos/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); %*/ |
