Disallow conforming to ObjC protocols with requirements that can't be imported.

For example, variadic ObjC method requirements.

<rdar://problem/17366999>

Swift SVN r19121
This commit is contained in:
Jordan Rose
2014-06-24 01:23:06 +00:00
parent 678bbfe683
commit db3914e94b
12 changed files with 88 additions and 12 deletions

View File

@@ -1770,6 +1770,7 @@ ProtocolDecl::ProtocolDecl(DeclContext *DC, SourceLoc ProtocolLoc,
ProtocolDeclBits.KnownProtocol = 0;
ProtocolDeclBits.Circularity
= static_cast<unsigned>(CircularityCheck::Unchecked);
ProtocolDeclBits.HasMissingRequirements = false;
}
bool ProtocolDecl::inheritsFrom(const ProtocolDecl *Super) const {