[前][次][番号順一覧][スレッド一覧]

ruby-changes:1742

From: ko1@a...
Date: 23 Aug 2007 13:19:56 +0900
Subject: [ruby-changes:1742] nobu - Ruby:r13233 (trunk): * parse.y (f_norm_arg): check also nested arguments.

nobu	2007-08-23 13:19:45 +0900 (Thu, 23 Aug 2007)

  New Revision: 13233

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (f_norm_arg): check also nested arguments.  [ruby-dev:31502]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=13233&r2=13232
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13233&r2=13232

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13232)
+++ ChangeLog	(revision 13233)
@@ -1,3 +1,7 @@
+Thu Aug 23 13:19:43 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (f_norm_arg): check also nested arguments.  [ruby-dev:31502]
+
 Thu Aug 23 00:06:48 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* util.c: updated for ANSI C only.  applied a patch from
Index: parse.y
===================================================================
--- parse.y	(revision 13232)
+++ parse.y	(revision 13233)
@@ -4154,6 +4154,7 @@
 		    }
 		| tIDENTIFIER
 		    {
+			shadowing_lvar($1);
 			$$ = $1;
 		    }
 		;
@@ -4163,7 +4164,6 @@
 		    /*%%%*/
 			if (!is_local_id($1))
 			    yyerror("formal argument must be local variable");
-			shadowing_lvar($1);
 			arg_var($1);
 			$$ = NEW_ARGS_AUX($1, 1);
 		    /*%

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]