mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #59672 from beccadax/what-is-the-protocol-for-generating-sendable
Ignore Sendable conformances in PrintAsClang
This commit is contained in:
@@ -439,8 +439,10 @@ public:
|
|||||||
bool allRequirementsSatisfied = true;
|
bool allRequirementsSatisfied = true;
|
||||||
|
|
||||||
for (auto proto : PD->getInheritedProtocols()) {
|
for (auto proto : PD->getInheritedProtocols()) {
|
||||||
assert(proto->isObjC());
|
if (printer.shouldInclude(proto)) {
|
||||||
allRequirementsSatisfied &= require(proto);
|
assert(proto->isObjC());
|
||||||
|
allRequirementsSatisfied &= require(proto);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!allRequirementsSatisfied)
|
if (!allRequirementsSatisfied)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import objc_generics
|
|||||||
|
|
||||||
// CHECK-LABEL: @protocol B <A>
|
// CHECK-LABEL: @protocol B <A>
|
||||||
// CHECK-NEXT: @end
|
// CHECK-NEXT: @end
|
||||||
@objc protocol B : A {}
|
@objc protocol B : A, Sendable {}
|
||||||
|
|
||||||
// CHECK-LABEL: @protocol CompletionAndAsync
|
// CHECK-LABEL: @protocol CompletionAndAsync
|
||||||
// CHECK-NEXT: - (void)helloWithCompletion:(void (^ _Nonnull)(BOOL))completion;
|
// CHECK-NEXT: - (void)helloWithCompletion:(void (^ _Nonnull)(BOOL))completion;
|
||||||
|
|||||||
Reference in New Issue
Block a user