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.
2 parents 2a05803 + a9e300b commit a25e2cdCopy full SHA for a25e2cd
lib/Sema/CSSolver.cpp
@@ -2135,7 +2135,9 @@ void ConstraintSystem::partitionGenericOperators(ArrayRef<Constraint *> constrai
2135
// overload choices first.
2136
for (auto arg : argFnType->getParams()) {
2137
auto argType = arg.getPlainType();
2138
- if (!argType || argType->hasTypeVariable())
+ argType = getFixedTypeRecursive(argType, /*wantRValue=*/true);
2139
+
2140
+ if (argType->isTypeVariableOrMember())
2141
continue;
2142
2143
if (conformsToKnownProtocol(DC, argType, KnownProtocolKind::AdditiveArithmetic)) {
0 commit comments