We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IgnoreContextualType
1 parent 06a762b commit e512473Copy full SHA for e512473
lib/Sema/CSSimplify.cpp
@@ -4909,7 +4909,7 @@ bool ConstraintSystem::repairFailures(
4909
if (contextualType->isEqual(rhs)) {
4910
auto *loc = getConstraintLocator(
4911
anchor, LocatorPathElt::ContextualType(purpose));
4912
- if (hasFixFor(loc, FixKind::ContextualMismatch))
+ if (hasFixFor(loc, FixKind::IgnoreContextualType))
4913
return true;
4914
4915
if (contextualType->isVoid() && purpose == CTP_ReturnStmt) {
@@ -4918,7 +4918,7 @@ bool ConstraintSystem::repairFailures(
4918
}
4919
4920
conversionsOrFixes.push_back(
4921
- ContextualMismatch::create(*this, lhs, rhs, loc));
+ IgnoreContextualType::create(*this, lhs, rhs, loc));
4922
break;
4923
4924
0 commit comments