Sema: Pass argument match kind down to matchCallArguments()

This commit is contained in:
Slava Pestov
2019-05-07 21:47:41 -04:00
parent 5938f5a6a9
commit 1dedba1f12
4 changed files with 16 additions and 11 deletions

View File

@@ -7848,6 +7848,7 @@ Expr *TypeChecker::callWitness(Expr *base, DeclContext *dc,
auto openedFuncType = openedType->castTo<FunctionType>();
::matchCallArguments(
cs, args, openedFuncType->getParams(),
ConstraintKind::ArgumentConversion,
cs.getConstraintLocator(call, ConstraintLocator::ApplyArgument));
// Solve the system.