Merge pull request #15580 from davezarzycki/remove_majority_of_TVO_CanBindToInOut

[Sema] Remove unneeded uses of TVO_CanBindToInOut
This commit is contained in:
David Zarzycki
2018-03-28 18:32:26 -04:00
committed by GitHub
6 changed files with 59 additions and 104 deletions

View File

@@ -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;
});
}