Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index 7309990bcb0eae5e79b48a8ca6f0442027079bb5..f96c1a3ec17e9fb14636824aff397baba1ee81ab 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -5530,7 +5530,7 @@ void Parser::SkipTypeArguments() { |
if (CurrentToken() == Token::kLT) { |
do { |
ConsumeToken(); |
- SkipTypeOrFunctionType(false); |
+ SkipTypeOrFunctionType(true); |
} while (CurrentToken() == Token::kCOMMA); |
Token::Kind token = CurrentToken(); |
if ((token == Token::kGT) || (token == Token::kSHR)) { |
@@ -5685,7 +5685,7 @@ RawTypeArguments* Parser::ParseTypeArguments( |
AbstractType& type = AbstractType::Handle(Z); |
do { |
ConsumeToken(); |
- type = ParseTypeOrFunctionType(false, finalization); |
+ type = ParseTypeOrFunctionType(true, finalization); |
// Map a malformed type argument to dynamic. |
if (type.IsMalformed()) { |
type = Type::DynamicType(); |