Skip to content

Commit aa0d0f2

Browse files
authored
Merge pull request swiftlang#32971 from xedin/rdar-65724310
[CSBindings] Make sure that transitive bindings aren't inferred on it…
2 parents 71f6797 + 03a9caa commit aa0d0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void ConstraintSystem::PotentialBindings::inferTransitiveBindings(
4747
for (auto *constraint : conversions) {
4848
auto *tv =
4949
cs.simplifyType(constraint->getFirstType())->getAs<TypeVariableType>();
50-
if (!tv)
50+
if (!tv || tv == TypeVar)
5151
continue;
5252

5353
auto relatedBindings = inferredBindings.find(tv);

0 commit comments

Comments
 (0)