mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (primary): primary_value may be 0 when syntax error.
[ruby-talk:84893] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
152380a87c
commit
a51ba48abc
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 10 00:07:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (primary): primary_value may be 0 when syntax error.
|
||||
[ruby-talk:84893]
|
||||
|
||||
Sat Nov 9 02:05:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb: un-deprecated #assert_not_nil to
|
||||
|
|
2
parse.y
2
parse.y
|
@ -1445,7 +1445,7 @@ primary : literal
|
|||
}
|
||||
| primary_value '[' aref_args ']'
|
||||
{
|
||||
if (nd_type($1) == NODE_SELF)
|
||||
if ($1 && nd_type($1) == NODE_SELF)
|
||||
$$ = NEW_FCALL(tAREF, $3);
|
||||
else
|
||||
$$ = NEW_CALL($1, tAREF, $3);
|
||||
|
|
Loading…
Reference in a new issue