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 a79e7b5 commit a5d0153Copy full SHA for a5d0153
lib/AST/Module.cpp
@@ -1023,8 +1023,8 @@ LookupConformanceInModuleRequest::evaluate(
1023
1024
// UnresolvedType is a placeholder for an unknown type used when generating
1025
// diagnostics. We consider it to conform to all protocols, since the
1026
- // intended type might have.
1027
- if (type->is<UnresolvedType>())
+ // intended type might have. Same goes for PlaceholderType.
+ if (type->is<UnresolvedType>() || type->is<PlaceholderType>())
1028
return ProtocolConformanceRef(protocol);
1029
1030
auto nominal = type->getAnyNominal();
0 commit comments