mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #82664 from swiftlang/jepa2-6.2
[6.2] Sema: Fix the insertion location for conformances attributes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user