mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user