Skip to content

Commit b09f1c5

Browse files
committed
merge revision(s) 14313:
* parse.y (f_rest_arg): check if duplicated. [ruby-core:14140] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 08a04c8 commit b09f1c5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Sun Jun 8 05:37:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* parse.y (f_rest_arg): check if duplicated. [ruby-core:14140]
4+
15
Sun Jun 8 05:32:45 2008 Tanaka Akira <akr@fsij.org>
26

37
* gc.c (stack_end_address): use local variable address instead of

parse.y

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,8 @@ f_rest_arg : restarg_mark tIDENTIFIER
23432343
{
23442344
if (!is_local_id($2))
23452345
yyerror("rest argument must be local variable");
2346+
else if (local_id($2))
2347+
yyerror("duplicate rest argument name");
23462348
if (dyna_in_block()) {
23472349
rb_dvar_push($2, Qnil);
23482350
}

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 160
5+
#define RUBY_PATCHLEVEL 161
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)