mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Assume that placeholder types conform to all protocols
This commit is contained in:
committed by
Freddy Kellison-Linn
parent
a79e7b59f0
commit
a5d0153fbf
@@ -1023,8 +1023,8 @@ LookupConformanceInModuleRequest::evaluate(
|
||||
|
||||
// UnresolvedType is a placeholder for an unknown type used when generating
|
||||
// diagnostics. We consider it to conform to all protocols, since the
|
||||
// intended type might have.
|
||||
if (type->is<UnresolvedType>())
|
||||
// intended type might have. Same goes for PlaceholderType.
|
||||
if (type->is<UnresolvedType>() || type->is<PlaceholderType>())
|
||||
return ProtocolConformanceRef(protocol);
|
||||
|
||||
auto nominal = type->getAnyNominal();
|
||||
|
||||
Reference in New Issue
Block a user