Skip to content

Commit a5d0153

Browse files
committed
[AST] Assume that placeholder types conform to all protocols
1 parent a79e7b5 commit a5d0153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/Module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,8 @@ LookupConformanceInModuleRequest::evaluate(
10231023

10241024
// UnresolvedType is a placeholder for an unknown type used when generating
10251025
// diagnostics. We consider it to conform to all protocols, since the
1026-
// intended type might have.
1027-
if (type->is<UnresolvedType>())
1026+
// intended type might have. Same goes for PlaceholderType.
1027+
if (type->is<UnresolvedType>() || type->is<PlaceholderType>())
10281028
return ProtocolConformanceRef(protocol);
10291029

10301030
auto nominal = type->getAnyNominal();

0 commit comments

Comments
 (0)