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 bc7f11c commit 706f84aCopy full SHA for 706f84a
lib/AST/Type.cpp
@@ -2920,7 +2920,8 @@ Optional<ProtocolConformanceRef>
2920
MakeAbstractConformanceForGenericType::operator()(CanType dependentType,
2921
Type conformingReplacementType,
2922
ProtocolType *conformedProtocol) const {
2923
- assert((conformingReplacementType->is<SubstitutableType>()
+ assert((conformingReplacementType->is<ErrorType>()
2924
+ || conformingReplacementType->is<SubstitutableType>()
2925
|| conformingReplacementType->is<DependentMemberType>())
2926
&& "replacement requires looking up a concrete conformance");
2927
return ProtocolConformanceRef(conformedProtocol->getDecl());
0 commit comments