Skip to content

Commit 4348b59

Browse files
committed
[CSSimplify] Presence of conversion restrictions should delay fixing of generic arguments
Conversion restrictions like "deep equality" could produce a more narrow/actionable fixes. (cherry picked from commit 0772e4c)
1 parent c7a53bf commit 4348b59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6673,6 +6673,9 @@ bool ConstraintSystem::repairFailures(
66736673
if (flags.contains(TMF_MatchingGenericArguments))
66746674
break;
66756675

6676+
if (hasAnyRestriction())
6677+
break;
6678+
66766679
Type fromType;
66776680
Type toType;
66786681

0 commit comments

Comments
 (0)