mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-module-digester: don't diagnose new protocol requirements if they're inherited.
This commit is contained in:
@@ -842,7 +842,7 @@ public:
|
||||
// Complain about added protocol requirements
|
||||
if (auto *D = dyn_cast<SDKNodeDecl>(Right)) {
|
||||
if (D->isProtocolRequirement()) {
|
||||
bool ShouldComplain = true;
|
||||
bool ShouldComplain = !D->isOverriding();
|
||||
// We should allow added associated types with default.
|
||||
if (auto ATD = dyn_cast<SDKNodeDeclAssociatedType>(D)) {
|
||||
if (ATD->getDefault())
|
||||
|
||||
Reference in New Issue
Block a user