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

ruby-changes:45341

From: nobu <ko1@a...>
Date: Tue, 24 Jan 2017 16:52:46 +0900 (JST)
Subject: [ruby-changes:45341] nobu:r57414 (trunk): parse.y (parser_yylex): remove wrong warning

nobu	2017-01-24 16:52:41 +0900 (Tue, 24 Jan 2017)

  New Revision: 57414

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57414

  Log:
    parse.y (parser_yylex): remove wrong warning

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 57413)
+++ parse.y	(revision 57414)
@@ -8536,10 +8536,6 @@ parser_yylex(struct parser_params *parse https://github.com/ruby/ruby/blob/trunk/parse.y#L8536
 	}
 	else if (IS_SPCARG(-1)) {
 	    c = tLPAREN_ARG;
-	    if (lex_state == EXPR_ARG) {
-		rb_warning0("parentheses after method name and a space is interpreted as "
-			    "an argument list, not a parenthesed argument");
-	    }
 	}
 	else if (IS_lex_state(EXPR_ENDFN) && space_seen && !lambda_beginning_p()) {
 	    rb_warning0("parentheses after method name is interpreted as "

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

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