| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index 2d92205554635666901ee1a3882c8cc812ab28f3..1077fde2e2f563b76426394b425226870a1ec656 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -16946,6 +16946,7 @@ RawAbstractType* Type::CloneUnfinalized() const {
|
| RawAbstractType* Type::CloneUninstantiated(const Class& new_owner,
|
| TrailPtr trail) const {
|
| ASSERT(IsFinalized());
|
| + ASSERT(IsCanonical());
|
| ASSERT(!IsMalformed());
|
| if (IsInstantiated()) {
|
| return raw();
|
| @@ -17017,6 +17018,7 @@ RawAbstractType* Type::CloneUninstantiated(const Class& new_owner,
|
| clone.set_arguments(type_args);
|
| }
|
| clone.SetIsFinalized();
|
| + clone ^= clone.Canonicalize();
|
| return clone.raw();
|
| }
|
|
|
|
|