[Constraint] Implement gatherReferencedVariables for closure body element

This commit is contained in:
Pavel Yaskevich
2021-07-20 16:21:36 -07:00
parent 95119f1049
commit 698ea82a6d

View File

@@ -686,6 +686,8 @@ gatherReferencedTypeVars(Constraint *constraint,
break;
case ConstraintKind::ClosureBodyElement:
typeVars.insert(constraint->getTypeVariables().begin(),
constraint->getTypeVariables().end());
break;
}
}