| Index: runtime/vm/parser.cc
|
| ===================================================================
|
| --- runtime/vm/parser.cc (revision 7305)
|
| +++ runtime/vm/parser.cc (working copy)
|
| @@ -7312,8 +7312,7 @@
|
|
|
| // Parse the list elements. Note: there may be an optional extra
|
| // comma after the last element.
|
| - ArrayNode* list =
|
| - new ArrayNode(token_index_, TypeArguments::ZoneHandle());
|
| + ArrayNode* list = new ArrayNode(token_index_, type_arguments);
|
| if (!is_empty_literal) {
|
| const bool saved_mode = SetAllowFunctionLiterals(true);
|
| const String& dst_name = String::ZoneHandle(
|
| @@ -7478,6 +7477,8 @@
|
|
|
| // Parse the map entries. Note: there may be an optional extra
|
| // comma after the last entry.
|
| + // The kv_pair array is temporary and of element type Dynamic. It is passed
|
| + // to the factory to initialize a properly typed map.
|
| ArrayNode* kv_pairs =
|
| new ArrayNode(token_index_, TypeArguments::ZoneHandle());
|
| const String& dst_name = String::ZoneHandle(
|
|
|