mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Normalize the way paren types are stripped in Sema.
This commit is contained in:
@@ -2839,13 +2839,7 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
|
||||
if (auto fnType =
|
||||
fnTypeWithSelf->getResult()->getAs<FunctionType>()) {
|
||||
|
||||
auto argType = fnType->getInput();
|
||||
|
||||
if (auto parenType =
|
||||
dyn_cast<ParenType>(argType.getPointer())) {
|
||||
argType = parenType->getUnderlyingType();
|
||||
}
|
||||
|
||||
auto argType = fnType->getInput()->getWithoutParens();
|
||||
if (argType->isEqual(favoredType))
|
||||
result.FavoredChoice = result.ViableCandidates.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user