mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #39095 from AnthonyLatsis/se-309
SE-0309: Unlock existential types for all protocols
This commit is contained in:
@@ -3561,14 +3561,13 @@ public:
|
||||
StringRef blobData) {
|
||||
IdentifierID nameID;
|
||||
DeclContextID contextID;
|
||||
bool isImplicit, isClassBounded, isObjC, existentialTypeSupported;
|
||||
bool isImplicit, isClassBounded, isObjC;
|
||||
uint8_t rawAccessLevel;
|
||||
unsigned numInheritedTypes;
|
||||
ArrayRef<uint64_t> rawInheritedAndDependencyIDs;
|
||||
|
||||
decls_block::ProtocolLayout::readRecord(scratch, nameID, contextID,
|
||||
isImplicit, isClassBounded, isObjC,
|
||||
existentialTypeSupported,
|
||||
rawAccessLevel, numInheritedTypes,
|
||||
rawInheritedAndDependencyIDs);
|
||||
|
||||
@@ -3594,8 +3593,6 @@ public:
|
||||
|
||||
ctx.evaluator.cacheOutput(ProtocolRequiresClassRequest{proto},
|
||||
std::move(isClassBounded));
|
||||
ctx.evaluator.cacheOutput(ExistentialTypeSupportedRequest{proto},
|
||||
std::move(existentialTypeSupported));
|
||||
|
||||
if (auto accessLevel = getActualAccessLevel(rawAccessLevel))
|
||||
proto->setAccess(*accessLevel);
|
||||
|
||||
Reference in New Issue
Block a user