| Index: runtime/vm/parser.cc
|
| ===================================================================
|
| --- runtime/vm/parser.cc (revision 11702)
|
| +++ runtime/vm/parser.cc (working copy)
|
| @@ -3430,6 +3430,7 @@
|
| void Parser::ParseTypeParameters(const Class& cls) {
|
| TRACE_PARSER("ParseTypeParameters");
|
| if (CurrentToken() == Token::kLT) {
|
| + Isolate* isolate = Isolate::Current();
|
| const GrowableObjectArray& type_parameters_array =
|
| GrowableObjectArray::Handle(GrowableObjectArray::New());
|
| intptr_t index = 0;
|
| @@ -3462,7 +3463,7 @@
|
| // type parameters, as they are not fully parsed yet.
|
| type_parameter_bound = ParseType(ClassFinalizer::kDoNotResolve);
|
| } else {
|
| - type_parameter_bound = Type::DynamicType();
|
| + type_parameter_bound = isolate->object_store()->object_type();
|
| }
|
| type_parameter = TypeParameter::New(cls,
|
| index,
|
|
|