diff --git a/ChangeLog b/ChangeLog index 20a120150b..48e5a05e19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 21 01:16:46 2002 Nobuyoshi Nakada + + * parse.y (bodystmt): ensure clause was excuted on else clause + without rescue clase. + Tue May 21 00:20:25 2002 Takaaki Tateishi * ext/dl/ptr.c: rename PtrData::alloc to PtrData::malloc. diff --git a/parse.y b/parse.y index b30f736673..375fca8435 100644 --- a/parse.y +++ b/parse.y @@ -309,7 +309,7 @@ bodystmt : compstmt } else if ($3) { rb_warn("else without rescue is useless"); - $$ = block_append($$, $4); + $$ = block_append($$, $3); } if ($4) { $$ = NEW_ENSURE($$, $4);