зеркало из https://github.com/github/ruby.git
parse.y: fix typo
* parse.y (singleton): fix typo, show the expression. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
58d01fc1b7
Коммит
035db929d1
4
parse.y
4
parse.y
|
@ -4962,7 +4962,7 @@ singleton : var_ref
|
|||
{
|
||||
/*%%%*/
|
||||
if ($3 == 0) {
|
||||
yyerror1(&@2, "can't define singleton method for ().");
|
||||
yyerror1(&@3, "can't define singleton method for ().");
|
||||
}
|
||||
else {
|
||||
switch (nd_type($3)) {
|
||||
|
@ -4974,7 +4974,7 @@ singleton : var_ref
|
|||
case NODE_LIT:
|
||||
case NODE_ARRAY:
|
||||
case NODE_ZARRAY:
|
||||
yyerror1(&@2, "can't define singleton method for literals");
|
||||
yyerror1(&@3, "can't define singleton method for literals");
|
||||
break;
|
||||
default:
|
||||
value_expr($3);
|
||||
|
|
Загрузка…
Ссылка в новой задаче