mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Speculatively revert "[Type checker] Eliminate the 'literalConformanceProto' state on type variables."
This reverts commit 6bdd9cfae5. This
commit *appears* to be breaking something in Dollar involving
inference with array literals and 'nil'; pull it back for more
investigation.
This commit is contained in:
@@ -2920,8 +2920,7 @@ bool FailureDiagnosis::diagnoseGeneralConversionFailure(Constraint *constraint){
|
||||
// If simplification has turned this into the same types, then this isn't the
|
||||
// broken constraint that we're looking for.
|
||||
if (fromType->isEqual(toType) &&
|
||||
constraint->getKind() != ConstraintKind::ConformsTo &&
|
||||
constraint->getKind() != ConstraintKind::LiteralConformsTo)
|
||||
constraint->getKind() != ConstraintKind::ConformsTo)
|
||||
return false;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user