Merge pull request #26690 from varungandhi-apple/vg-refactor-validateExtension

Avoid setting the extendedType before and after computing the generic signature.
This commit is contained in:
Varun Gandhi
2019-08-19 14:04:03 -07:00
committed by GitHub
12 changed files with 107 additions and 78 deletions

View File

@@ -3931,9 +3931,8 @@ public:
MF.configureGenericEnvironment(extension, genericEnvID);
auto baseTy = MF.getType(baseID);
auto nominal = baseTy->getAnyNominal();
assert(!baseTy->hasUnboundGenericType());
extension->getExtendedTypeLoc().setType(baseTy);
auto nominal = extension->getExtendedNominal();
if (isImplicit)
extension->setImplicit();