mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow models to omit witnesses for optional protocol requirements.
Swift SVN r9962
This commit is contained in:
@@ -800,6 +800,10 @@ namespace {
|
||||
"should only consider objc conformances for extensions");
|
||||
if (protocol->isObjC())
|
||||
for (auto &mapping : conformance->getWitnesses()) {
|
||||
// Missing optional requirement.
|
||||
if (!mapping.second)
|
||||
continue;
|
||||
|
||||
ValueDecl *vd = mapping.second.getDecl();
|
||||
if (vd->getDeclContext() != TheExtension)
|
||||
visit(vd);
|
||||
|
||||
Reference in New Issue
Block a user