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 {
439439 bool allRequirementsSatisfied = true ;
440440
441441 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+ }
444446 }
445447
446448 if (!allRequirementsSatisfied)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import objc_generics
2525
2626// CHECK-LABEL: @protocol B <A>
2727// CHECK-NEXT: @end
28- @objc protocol B : A { }
28+ @objc protocol B : A , Sendable { }
2929
3030// CHECK-LABEL: @protocol CompletionAndAsync
3131// CHECK-NEXT: - (void)helloWithCompletion:(void (^ _Nonnull)(BOOL))completion;
You can’t perform that action at this time.
0 commit comments