mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ConstraintSystem] Allow binding metatypes to succeed if one contains
a hole.
This commit is contained in:
@@ -3399,6 +3399,13 @@ bool ConstraintSystem::repairFailures(
|
||||
break;
|
||||
}
|
||||
|
||||
case ConstraintLocator::InstanceType: {
|
||||
if (lhs->hasUnresolvedType() || rhs->hasUnresolvedType())
|
||||
return true;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user