mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Add a FIXME
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user