mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #62123 from DougGregor/pretty-stack-trace-macros
This commit is contained in:
@@ -5541,10 +5541,12 @@ bool ConstraintSystem::repairFailures(
|
||||
|
||||
if (auto overload = findSelectedOverloadFor(calleeLocator)) {
|
||||
if (auto *decl = overload->choice.getDeclOrNull()) {
|
||||
if (getParameterList(decl)->get(paramIdx)->getTypeOfDefaultExpr()) {
|
||||
conversionsOrFixes.push_back(
|
||||
IgnoreDefaultExprTypeMismatch::create(*this, lhs, rhs, loc));
|
||||
break;
|
||||
if (auto paramList = getParameterList(decl)) {
|
||||
if (paramList->get(paramIdx)->getTypeOfDefaultExpr()) {
|
||||
conversionsOrFixes.push_back(
|
||||
IgnoreDefaultExprTypeMismatch::create(*this, lhs, rhs, loc));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user