mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use "TypeBase::hasError()" rather than "is<ErrorType>()" where needed.
In most places where we were checking "is<ErrorType>()", we now mean "any error occurred". The few exceptions are in associated type inference, code completion, and expression diagnostics, where we might still work with partial errors.
This commit is contained in:
@@ -1326,7 +1326,7 @@ ConstraintSystem::getTypeOfMemberReference(
|
||||
if (!isClassBoundExistential &&
|
||||
!selfTy->hasReferenceSemantics() &&
|
||||
baseTy->is<LValueType>() &&
|
||||
!selfTy->is<ErrorType>())
|
||||
!selfTy->hasError())
|
||||
selfTy = InOutType::get(selfTy);
|
||||
|
||||
openedType = FunctionType::get(selfTy, openedType);
|
||||
|
||||
Reference in New Issue
Block a user