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 eea7ab3 commit 6475efcCopy full SHA for 6475efc
lib/AST/ConformanceLookup.cpp
@@ -519,6 +519,10 @@ LookupConformanceInModuleRequest::evaluate(
519
return result;
520
}
521
522
+ // Type parameters have trivial conformances.
523
+ if (type->isTypeParameter())
524
+ return ProtocolConformanceRef(protocol);
525
+
526
// Type variables have trivial conformances.
527
if (type->isTypeVariableOrMember())
528
return ProtocolConformanceRef(protocol);
0 commit comments