File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1229,14 +1229,13 @@ swift::extractDistributedSerializationRequirements(
1229
1229
DA->getAssociatedType (C.Id_SerializationRequirement );
1230
1230
1231
1231
for (auto req : allRequirements) {
1232
- if (req.getSecondType ()->isAny ()) {
1233
- continue ;
1234
- }
1235
- if (!req.getFirstType ()->hasDependentMember ())
1232
+ // FIXME: Seems unprincipled
1233
+ if (req.getKind () != RequirementKind::SameType &&
1234
+ req.getKind () != RequirementKind::Conformance)
1236
1235
continue ;
1237
1236
1238
1237
if (auto dependentMemberType =
1239
- req.getFirstType ()->castTo <DependentMemberType>()) {
1238
+ req.getFirstType ()->getAs <DependentMemberType>()) {
1240
1239
if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
1241
1240
auto layout = req.getSecondType ()->getExistentialLayout ();
1242
1241
for (auto p : layout.getProtocols ()) {
You can’t perform that action at this time.
0 commit comments