summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 0 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 8f6b8ee800..009ee673c7 100644
--- a/parse.y
+++ b/parse.y
@@ -8536,10 +8536,6 @@ parser_yylex(struct parser_params *parser)
}
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 "