зеркало из https://github.com/github/ruby.git
* parse.y (stmt): explicit error for "Object::Far += foo 1" just
as "Object::Far += 1". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
994293bc81
Коммит
1fc5fb2b7b
|
@ -1,3 +1,8 @@
|
|||
Thu Jan 15 14:17:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (stmt): explicit error for "Object::Far += foo 1" just
|
||||
as "Object::Far += 1".
|
||||
|
||||
Thu Jan 15 13:10:58 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (COMPILERFLAG): for enc/trans/gb18030.c.
|
||||
|
|
5
parse.y
5
parse.y
|
@ -1100,6 +1100,11 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
|
|||
$$ = dispatch3(opassign, $$, $4, $5);
|
||||
%*/
|
||||
}
|
||||
| primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
|
||||
{
|
||||
yyerror("constant re-assignment");
|
||||
$$ = 0;
|
||||
}
|
||||
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
|
||||
{
|
||||
/*%%%*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче