mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Remove validateAbstractStorageDecl()
Validating a variable or subscript no longer forces accessor synthesis.
This commit is contained in:
@@ -1404,6 +1404,10 @@ void TypeChecker::synthesizeWitnessAccessorsForStorage(
|
||||
AbstractStorageDecl *storage) {
|
||||
bool addedAccessor = false;
|
||||
|
||||
// Make sure the protocol requirement itself has the right accessors.
|
||||
// FIXME: This should be a request kicked off by SILGen.
|
||||
DeclsToFinalize.insert(requirement);
|
||||
|
||||
requirement->visitExpectedOpaqueAccessors([&](AccessorKind kind) {
|
||||
// If the accessor already exists, we have nothing to do.
|
||||
if (storage->getAccessor(kind))
|
||||
|
||||
Reference in New Issue
Block a user