| Index: runtime/vm/parser.cc
|
| diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
|
| index 20ab695405b4df8ebd5c0bf1a742b9424a1f3918..23ca9317e3d68753a6981d935d120a7f088af64b 100644
|
| --- a/runtime/vm/parser.cc
|
| +++ b/runtime/vm/parser.cc
|
| @@ -13474,7 +13474,7 @@ AstNode* Parser::ParseListLiteral(TokenPosition type_pos,
|
| if (I->type_checks() && !element_type.IsDynamicType() &&
|
| (!elem->AsLiteralNode()->literal().IsNull() &&
|
| !elem->AsLiteralNode()->literal().IsInstanceOf(
|
| - element_type, TypeArguments::Handle(Z), &bound_error))) {
|
| + element_type, Object::null_type_arguments(), &bound_error))) {
|
| // If the failure is due to a bound error, display it instead.
|
| if (!bound_error.IsNull()) {
|
| ReportError(bound_error);
|
| @@ -14311,8 +14311,8 @@ AstNode* Parser::ParseNewOperator(Token::Kind op_kind) {
|
| ASSERT(!type_bound.IsMalformed());
|
| Error& bound_error = Error::Handle(Z);
|
| ASSERT(!is_top_level_); // We cannot check unresolved types.
|
| - if (!const_instance.IsInstanceOf(type_bound, TypeArguments::Handle(Z),
|
| - &bound_error)) {
|
| + if (!const_instance.IsInstanceOf(
|
| + type_bound, Object::null_type_arguments(), &bound_error)) {
|
| type_bound = ClassFinalizer::NewFinalizedMalformedType(
|
| bound_error, script_, new_pos,
|
| "const factory result is not an instance of '%s'",
|
|
|