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.
1 parent 54f9cae commit 194ecffCopy full SHA for 194ecff
lib/Sema/CSSimplify.cpp
@@ -5645,8 +5645,7 @@ bool ConstraintSystem::repairFailures(
5645
5646
auto *parentLoc = getConstraintLocator(anchor, path);
5647
5648
- if ((lhs->is<InOutType>() && !rhs->is<InOutType>()) ||
5649
- (!lhs->is<InOutType>() && rhs->is<InOutType>())) {
+ if (lhs->is<InOutType>() != rhs->is<InOutType>()) {
5650
// Since `FunctionArgument` as a last locator element represents
5651
// a single parameter of the function type involved in a conversion
5652
// to another function type, see `matchFunctionTypes`. If there is already
0 commit comments