mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #65785 from angela-laar/fix-covariant-erasure-for-constrained-existentials
Fix covariant erasure for constrained existentials
This commit is contained in:
@@ -12877,6 +12877,7 @@ ConstraintSystem::simplifyApplicableFnConstraint(
|
||||
// `as` coercion.
|
||||
if (AddExplicitExistentialCoercion::isRequired(
|
||||
*this, func2->getResult(), openedExistentials, locator)) {
|
||||
|
||||
if (!shouldAttemptFixes())
|
||||
return SolutionKind::Error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user