| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index 4cee7e86fe666c40a492fbf8786145044225e996..b701c0e28a4deab358e5b16cedf0e4fb55997ca3 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -92,6 +92,7 @@ class FunctionVisitor : public ObjectVisitor {
|
| // TypeParameter.
|
| typeHandle_ ^= funcHandle_.result_type();
|
| ASSERT(typeHandle_.IsNull() ||
|
| + !typeHandle_.IsResolved() ||
|
| typeHandle_.IsTypeParameter() ||
|
| typeHandle_.IsCanonical());
|
| // Verify that the types in the function signature are all canonical or
|
| @@ -99,7 +100,9 @@ class FunctionVisitor : public ObjectVisitor {
|
| const intptr_t num_parameters = funcHandle_.NumParameters();
|
| for (intptr_t i = 0; i < num_parameters; i++) {
|
| typeHandle_ = funcHandle_.ParameterTypeAt(i);
|
| - ASSERT(typeHandle_.IsTypeParameter() || typeHandle_.IsCanonical());
|
| + ASSERT(typeHandle_.IsTypeParameter() ||
|
| + !typeHandle_.IsResolved() ||
|
| + typeHandle_.IsCanonical());
|
| }
|
| }
|
| }
|
|
|