Sema: Fix the insertion location for conformances attributes

This commit is contained in:
Anthony Latsis
2025-06-24 08:32:11 +01:00
parent 156f68fb61
commit 1f28a04d29
18 changed files with 317 additions and 86 deletions

View File

@@ -3602,7 +3602,8 @@ bool ContextualFailure::tryProtocolConformanceFixIt(
for (auto protocol : missingProtocols) {
// Create a fake conformance for this type to the given protocol.
auto conformance = getASTContext().getNormalConformance(
nominal->getSelfInterfaceType(), protocol, SourceLoc(), nominal,
nominal->getSelfInterfaceType(), protocol, SourceLoc(),
/*inheritedTypeRepr=*/nullptr, nominal,
ProtocolConformanceState::Incomplete, ProtocolConformanceOptions());
// Resolve the conformance to generate fixits.