diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-30 02:39:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-06-30 02:39:38 +0000 |
| commit | 098e796ec18e1488eabdfde1b34126be4de3d747 (patch) | |
| tree | 3b7d00bfc689316741117062d6c5434ccd22d8ff /parse.y | |
| parent | 76e368b0c1bc13cd258c04bb0e5f48bddbd26a1b (diff) | |
| download | ruby-098e796ec18e1488eabdfde1b34126be4de3d747.tar.gz ruby-098e796ec18e1488eabdfde1b34126be4de3d747.tar.xz ruby-098e796ec18e1488eabdfde1b34126be4de3d747.zip | |
* parse.y (primary): should not be NULL. [ruby-core:03098]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1448,7 +1448,10 @@ primary : literal bodystmt kEND { - $$ = NEW_BEGIN($3); + if ($3 == NULL) + $$ = NEW_NIL(); + else + $$ = NEW_BEGIN($3); nd_set_line($$, $<num>1); } | tLPAREN_ARG expr {lex_state = EXPR_ENDARG;} rparen |
