Sema: Add a FIXME

This commit is contained in:
Slava Pestov
2018-08-23 00:38:31 -07:00
parent 1c5452df6f
commit 4ed51fbf48

View File

@@ -883,6 +883,10 @@ matchCallArguments(ConstraintSystem &cs, ConstraintKind kind,
paramIdx));
auto argTy = args[argIdx].getType();
// FIXME: This should be revisited. If one of argTy or paramTy
// is a type variable, matchTypes() will add a constraint, and
// when the constraint is later solved, we will have lost the
// value of 'subflags'.
if (!haveOneNonUserConversion) {
subflags |= ConstraintSystem::TMF_ApplyingOperatorParameter;
}