Get rid of the second call to setType() in validateExtension().

This means that we no longer have the invariant that the extendedType always
contains the generic parameters. So we need to fix the assertions/test cases
for it.
This commit is contained in:
Varun Gandhi
2019-08-15 17:03:40 -07:00
parent 3952a0a314
commit c85eae1efb
10 changed files with 52 additions and 49 deletions

View File

@@ -2871,7 +2871,6 @@ public:
auto contextID = S.addDeclContextRef(extension->getDeclContext());
Type baseTy = extension->getExtendedType();
assert(!baseTy->hasUnboundGenericType());
assert(!baseTy->hasArchetype());
// FIXME: Use the canonical type here in order to minimize circularity