Clean up TypeVariableType::Implementation::mustBeMaterializable(), etc

This commit is contained in:
Slava Pestov
2019-01-11 22:11:42 -05:00
parent 13741475f5
commit 33871548b3
5 changed files with 28 additions and 42 deletions

View File

@@ -698,7 +698,7 @@ bool ConstraintGraph::contractEdges() {
auto type = binding.BindingType;
isNotContractable = type.findIf([&](Type nestedType) -> bool {
if (auto tv = nestedType->getAs<TypeVariableType>()) {
if (!tv->getImpl().mustBeMaterializable())
if (tv->getImpl().canBindToInOut())
return true;
}