File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
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
+
1
5
Sun Jun 8 05:21:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
6
3
7
* configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined
Original file line number Diff line number Diff line change @@ -2343,6 +2343,8 @@ f_rest_arg : restarg_mark tIDENTIFIER
2343
2343
{
2344
2344
if (!is_local_id($2 ))
2345
2345
yyerror (" rest argument must be local variable" );
2346
+ else if (local_id($2 ))
2347
+ yyerror (" duplicate rest argument name" );
2346
2348
if (dyna_in_block()) {
2347
2349
rb_dvar_push ($2 , Qnil);
2348
2350
}
Original file line number Diff line number Diff line change 2
2
#define RUBY_RELEASE_DATE "2008-06-08"
3
3
#define RUBY_VERSION_CODE 185
4
4
#define RUBY_RELEASE_CODE 20080608
5
- #define RUBY_PATCHLEVEL 160
5
+ #define RUBY_PATCHLEVEL 161
6
6
7
7
#define RUBY_VERSION_MAJOR 1
8
8
#define RUBY_VERSION_MINOR 8
You can’t perform that action at this time.
0 commit comments