mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Remove GenericContext::setGenericEnvironment()
This was a transitional step before converting all callers to store a generic signature instead of an environment.
This commit is contained in:
@@ -142,8 +142,7 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
|
||||
synthesizer(initDecl);
|
||||
|
||||
// Compute the interface type of the initializer.
|
||||
if (auto env = parentDC->getGenericEnvironmentOfContext())
|
||||
initDecl->setGenericEnvironment(env);
|
||||
initDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
|
||||
initDecl->computeType();
|
||||
|
||||
initDecl->setAccess(derived.Nominal->getFormalAccess());
|
||||
|
||||
Reference in New Issue
Block a user