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 7165b4e commit 3be7164Copy full SHA for 3be7164
lib/AST/DistributedDecl.cpp
@@ -271,12 +271,9 @@ swift::getDistributedSerializationRequirements(
271
if (existentialRequirementTy->isAny())
272
return true; // we're done here, any means there are no requirements
273
274
- if (auto alias = dyn_cast<TypeAliasType>(existentialRequirementTy.getPointer())) {
275
- auto ty = alias->getDesugaredType();
276
- if (isa<ClassType>(ty) || isa<StructType>(ty) || isa<EnumType>(ty)) {
277
- // SerializationRequirement cannot be class or struct nowadays
278
- return false;
279
- }
+ if (!existentialRequirementTy->isExistentialType()) {
+ // SerializationRequirement must be an existential type
+ return false;
280
}
281
282
ExistentialType *serialReqType = existentialRequirementTy
0 commit comments