mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CS] Remove some uses of hasUnresolvedType in the solver
These should be unreachable now.
This commit is contained in:
@@ -300,7 +300,6 @@ static bool backwardScanAcceptsTrailingClosure(
|
||||
paramTy->is<ArchetypeType>() ||
|
||||
paramTy->is<AnyFunctionType>() ||
|
||||
paramTy->isTypeVariableOrMember() ||
|
||||
paramTy->is<UnresolvedType>() ||
|
||||
paramTy->isAny();
|
||||
}
|
||||
|
||||
@@ -10109,8 +10108,7 @@ performMemberLookup(ConstraintKind constraintKind, DeclNameRef memberName,
|
||||
|
||||
MemberLookupResult result;
|
||||
|
||||
if (instanceTy->isTypeVariableOrMember() ||
|
||||
instanceTy->is<UnresolvedType>()) {
|
||||
if (instanceTy->isTypeVariableOrMember()) {
|
||||
result.OverallResult = MemberLookupResult::Unsolved;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user