mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (bodystmt): ensure clause was excuted on else clause
without rescue clase. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15ac468a24
commit
dbdd56faf8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue May 21 01:16:46 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* parse.y (bodystmt): ensure clause was excuted on else clause
|
||||||
|
without rescue clase.
|
||||||
|
|
||||||
Tue May 21 00:20:25 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
Tue May 21 00:20:25 2002 Takaaki Tateishi <ttate@kt.jaist.ac.jp>
|
||||||
|
|
||||||
* ext/dl/ptr.c: rename PtrData::alloc to PtrData::malloc.
|
* ext/dl/ptr.c: rename PtrData::alloc to PtrData::malloc.
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -309,7 +309,7 @@ bodystmt : compstmt
|
||||||
}
|
}
|
||||||
else if ($3) {
|
else if ($3) {
|
||||||
rb_warn("else without rescue is useless");
|
rb_warn("else without rescue is useless");
|
||||||
$$ = block_append($$, $4);
|
$$ = block_append($$, $3);
|
||||||
}
|
}
|
||||||
if ($4) {
|
if ($4) {
|
||||||
$$ = NEW_ENSURE($$, $4);
|
$$ = NEW_ENSURE($$, $4);
|
||||||
|
|
Loading…
Reference in a new issue