mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Simplify BindingSet::isDirectHole()
This commit is contained in:
@@ -103,8 +103,7 @@ bool BindingSet::isDirectHole() const {
|
||||
if (!CS.shouldAttemptFixes())
|
||||
return false;
|
||||
|
||||
return Bindings.empty() && getNumViableLiteralBindings() == 0 &&
|
||||
Defaults.empty() && TypeVar->getImpl().canBindToHole();
|
||||
return !hasViableBindings() && TypeVar->getImpl().canBindToHole();
|
||||
}
|
||||
|
||||
static bool isGenericParameter(TypeVariableType *TypeVar) {
|
||||
|
||||
Reference in New Issue
Block a user