Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index cb9c620101ec318ff2baffb48bf4f5a698cea49e..78fe0942664f108d8272055a7e463501973d2fca 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -2184,7 +2184,7 @@ void Parser::ParseFormalParameter(bool allow_explicit_default_value, |
if (params->has_optional_positional_parameters) { |
ExpectToken(Token::kASSIGN); |
} else { |
- ExpectToken(Token::kCOLON); |
+ ConsumeToken(); |
eernst
2016/10/11 20:59:50
It was not obvious to me why this would work, but
Lasse Reichstein Nielsen
2016/10/12 06:10:58
Correct.
ConsumeToken is used to drop the current
|
} |
params->num_optional_parameters++; |
params->has_explicit_default_values = true; // Also if explicitly NULL. |