| 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();
|
| }
|
| params->num_optional_parameters++;
|
| params->has_explicit_default_values = true; // Also if explicitly NULL.
|
|
|