mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Bring back BindingSet::operator bool but call it BindingSet::isViable()
This commit is contained in:
@@ -922,7 +922,7 @@ bool ConstraintGraph::contractEdges() {
|
||||
if (tyvar1->getImpl().canBindToInOut()) {
|
||||
bool isNotContractable = true;
|
||||
auto bindings = CS.getBindingsFor(tyvar1);
|
||||
if (bindings.hasViableBindings() || bindings.isDirectHole()) {
|
||||
if (bindings.isViable()) {
|
||||
// Holes can't be contracted.
|
||||
if (bindings.isHole())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user