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.
1 parent 1062625 commit 0edd0f0Copy full SHA for 0edd0f0
lib/AST/DistributedDecl.cpp
@@ -316,12 +316,9 @@ swift::getDistributedSerializationRequirements(
316
if (existentialRequirementTy->isAny())
317
return true; // we're done here, any means there are no requirements
318
319
- if (auto alias = dyn_cast<TypeAliasType>(existentialRequirementTy.getPointer())) {
320
- auto ty = alias->getDesugaredType();
321
- if (isa<ClassType>(ty) || isa<StructType>(ty) || isa<EnumType>(ty)) {
322
- // SerializationRequirement cannot be class or struct nowadays
323
- return false;
324
- }
+ if (!existentialRequirementTy->isExistentialType()) {
+ // SerializationRequirement must be an existential type
+ return false;
325
}
326
327
ExistentialType *serialReqType = existentialRequirementTy
0 commit comments