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 4373c61 commit 695b07dCopy full SHA for 695b07d
lib/AST/RequirementMachine/RequirementLowering.cpp
@@ -762,10 +762,8 @@ void swift::rewriting::realizeInheritedRequirements(
762
763
// For any inverses, we only need to cancel out a default requirement.
764
if (dyn_cast_or_null<InverseTypeRepr>(typeRepr)) {
765
- if (auto protoTy = inheritedType->getAs<ProtocolType>())
766
- if (auto protoDecl = protoTy->getDecl())
767
- if (auto kp = protoDecl->getKnownProtocolKind())
768
- defaults.remove(*kp);
+ if (auto kp = inheritedType->getKnownProtocol())
+ defaults.remove(*kp);
769
770
continue;
771
}
0 commit comments