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 @@ -1224,14 +1224,13 @@ swift::extractDistributedSerializationRequirements(
1224
1224
DA->getAssociatedType (C.Id_SerializationRequirement );
1225
1225
1226
1226
for (auto req : allRequirements) {
1227
- if (req.getSecondType ()->isAny ()) {
1228
- continue ;
1229
- }
1230
- if (!req.getFirstType ()->hasDependentMember ())
1227
+ // FIXME: Seems unprincipled
1228
+ if (req.getKind () != RequirementKind::SameType &&
1229
+ req.getKind () != RequirementKind::Conformance)
1231
1230
continue ;
1232
1231
1233
1232
if (auto dependentMemberType =
1234
- req.getFirstType ()->castTo <DependentMemberType>()) {
1233
+ req.getFirstType ()->getAs <DependentMemberType>()) {
1235
1234
if (dependentMemberType->getAssocType () == daSerializationReqAssocType) {
1236
1235
auto layout = req.getSecondType ()->getExistentialLayout ();
1237
1236
for (auto p : layout.getProtocols ()) {
You can’t perform that action at this time.
0 commit comments