Skip to content

Commit f6b5a01

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_5@16994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 889a1bb commit f6b5a01

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:35:32 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:21:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
26

37
* configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined

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 185
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)