We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SerializationRequirement
1 parent 9dec692 commit 1da0164Copy full SHA for 1da0164
lib/AST/DistributedDecl.cpp
@@ -164,19 +164,7 @@ Type swift::getDistributedActorSerializationType(
164
actorProtocol->getAssociatedType(ctx.Id_SerializationRequirement)
165
->getDeclaredInterfaceType();
166
167
- auto protocols = sig->getRequiredProtocols(serializationTy);
168
- if (protocols.empty())
169
- return Type();
170
-
171
- SmallVector<Type, 2> members;
172
- llvm::transform(protocols, std::back_inserter(members), [](const auto *P) {
173
- return P->getDeclaredInterfaceType();
174
- });
175
176
- return ExistentialType::get(
177
- ProtocolCompositionType::get(ctx, members,
178
- /*inverses=*/{},
179
- /*HasExplicitAnyObject=*/false));
+ return sig->getExistentialType(serializationTy);
180
}
181
182
return resultTy;
0 commit comments