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 @@ -439,8 +439,10 @@ class ModuleWriter {
439
439
bool allRequirementsSatisfied = true ;
440
440
441
441
for (auto proto : PD->getInheritedProtocols ()) {
442
- assert (proto->isObjC ());
443
- allRequirementsSatisfied &= require (proto);
442
+ if (printer.shouldInclude (proto)) {
443
+ assert (proto->isObjC ());
444
+ allRequirementsSatisfied &= require (proto);
445
+ }
444
446
}
445
447
446
448
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