Skip to content

Commit 0772e4c

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.
1 parent 6f967da commit 0772e4c

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
@@ -6702,6 +6702,9 @@ bool ConstraintSystem::repairFailures(
67026702
if (flags.contains(TMF_MatchingGenericArguments))
67036703
break;
67046704

6705+
if (hasAnyRestriction())
6706+
break;
6707+
67056708
Type fromType;
67066709
Type toType;
67076710

0 commit comments

Comments
 (0)