File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -419,8 +419,10 @@ class ModuleWriter {
419
419
bool allRequirementsSatisfied = true ;
420
420
421
421
for (auto proto : PD->getInheritedProtocols ()) {
422
- assert (proto->isObjC ());
423
- allRequirementsSatisfied &= require (proto);
422
+ if (printer.shouldInclude (proto)) {
423
+ assert (proto->isObjC ());
424
+ allRequirementsSatisfied &= require (proto);
425
+ }
424
426
}
425
427
426
428
if (!allRequirementsSatisfied)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import objc_generics
25
25
26
26
// CHECK-LABEL: @protocol B <A>
27
27
// CHECK-NEXT: @end
28
- @objc protocol B : A { }
28
+ @objc protocol B : A , Sendable { }
29
29
30
30
// CHECK-LABEL: @protocol CompletionAndAsync
31
31
// CHECK-NEXT: - (void)helloWithCompletion:(void (^ _Nonnull)(BOOL))completion;
You can’t perform that action at this time.
0 commit comments