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 90afecf commit ef1dfdfCopy full SHA for ef1dfdf
stdlib/public/runtime/ProtocolConformance.cpp
@@ -776,15 +776,21 @@ bool swift::_checkGenericRequirements(
776
_getTypeByMangledName(req.getMangledTypeName(), substGenericParam);
777
if (!baseType) return true;
778
779
+ // Check whether it's dynamically castable, which works as a superclass
780
+ // check.
781
if (!swift_dynamicCastMetatype(subjectType, baseType)) return true;
782
783
continue;
784
}
785
- // FIXME: Handle all of the other cases.
- default:
786
- return true;
+ case GenericRequirementKind::SameConformance: {
787
+ // FIXME: Implement this check.
788
+ continue;
789
790
+ }
791
+
792
+ // Unknown generic requirement kind.
793
+ return true;
794
795
796
// Success!
0 commit comments