We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d03e1 commit 19a2eebCopy full SHA for 19a2eeb
lib/Sema/CSBindings.cpp
@@ -103,8 +103,7 @@ bool BindingSet::isDirectHole() const {
103
if (!CS.shouldAttemptFixes())
104
return false;
105
106
- return Bindings.empty() && getNumViableLiteralBindings() == 0 &&
107
- Defaults.empty() && TypeVar->getImpl().canBindToHole();
+ return !hasViableBindings() && TypeVar->getImpl().canBindToHole();
108
}
109
110
static bool isGenericParameter(TypeVariableType *TypeVar) {
0 commit comments