mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Simplify behavior of NameLookupFlags::PerformConformanceCheck flag
I'd like to remove this eventually, but for now I want to remove this special case check.
This commit is contained in:
@@ -3092,11 +3092,6 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
|
||||
if (includeInaccessibleMembers)
|
||||
lookupOptions |= NameLookupFlags::IgnoreAccessibility;
|
||||
|
||||
// If a constructor is only visible as a witness for a protocol
|
||||
// requirement, it must be an invalid override. Also, protocol
|
||||
// extensions cannot yet define designated initializers.
|
||||
lookupOptions -= NameLookupFlags::PerformConformanceCheck;
|
||||
|
||||
LookupResult ctors = TC.lookupConstructors(DC, instanceTy, lookupOptions);
|
||||
if (!ctors)
|
||||
return result; // No result.
|
||||
|
||||
Reference in New Issue
Block a user