mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #15580 from davezarzycki/remove_majority_of_TVO_CanBindToInOut
[Sema] Remove unneeded uses of TVO_CanBindToInOut
This commit is contained in:
@@ -1364,8 +1364,7 @@ ConstraintSystem::solve(Expr *&expr,
|
||||
if (allowFreeTypeVariables == FreeTypeVariableBinding::UnresolvedType) {
|
||||
convertType = convertType.transform([&](Type type) -> Type {
|
||||
if (type->is<UnresolvedType>())
|
||||
return createTypeVariable(getConstraintLocator(expr),
|
||||
TVO_CanBindToInOut);
|
||||
return createTypeVariable(getConstraintLocator(expr), /*options*/0);
|
||||
return type;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user