diff options
Diffstat (limited to 'crates/libsyntax2/src/grammar/expressions')
-rw-r--r-- | crates/libsyntax2/src/grammar/expressions/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/expressions/mod.rs b/crates/libsyntax2/src/grammar/expressions/mod.rs index dcbb1e2a8..30a78d0c4 100644 --- a/crates/libsyntax2/src/grammar/expressions/mod.rs +++ b/crates/libsyntax2/src/grammar/expressions/mod.rs | |||
@@ -264,7 +264,9 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | |||
264 | p.bump(); | 264 | p.bump(); |
265 | name_ref(p); | 265 | name_ref(p); |
266 | type_args::type_arg_list(p, true); | 266 | type_args::type_arg_list(p, true); |
267 | arg_list(p); | 267 | if p.at(L_PAREN) { |
268 | arg_list(p); | ||
269 | } | ||
268 | m.complete(p, METHOD_CALL_EXPR) | 270 | m.complete(p, METHOD_CALL_EXPR) |
269 | } | 271 | } |
270 | 272 | ||