mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Fix non-@objc AnyObject on Linux, again...
Swift SVN r29745
This commit is contained in:
@@ -775,7 +775,8 @@ LookupConformanceResult Module::lookupConformance(Type type,
|
||||
// existential to an archetype parameter, so for now we restrict this to
|
||||
// @objc protocols.
|
||||
for (auto proto : protocols) {
|
||||
if (!proto->isObjC())
|
||||
if (!proto->isObjC() &&
|
||||
!proto->isSpecificProtocol(KnownProtocolKind::AnyObject))
|
||||
return { nullptr, ConformanceKind::DoesNotConform };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user