Merge pull request #81522 from slavapestov/fix-rdar151162470

AST: Fix two bugs with SelfProtocolConformance
This commit is contained in:
Slava Pestov
2025-05-15 07:44:35 -04:00
committed by GitHub
4 changed files with 28 additions and 11 deletions

View File

@@ -918,9 +918,7 @@ public:
}
ProtocolConformanceRef getAssociatedConformance(Type assocType,
ProtocolDecl *protocol) const{
llvm_unreachable("self-conformances never have associated types");
}
ProtocolDecl *protocol) const;
bool hasWitness(ValueDecl *requirement) const {
return true;