Factor out the scalar-to-tuple type matching.

Swift SVN r9229
This commit is contained in:
Doug Gregor
2013-10-11 22:30:50 +00:00
parent e90c93b344
commit e3a664cf90
2 changed files with 33 additions and 14 deletions

View File

@@ -1343,6 +1343,15 @@ private:
ConstraintLocatorBuilder locator,
bool &trivial);
/// \brief Subroutine of \c matchTypes(), which matches a scalar type to
/// a tuple type.
///
/// \returns the result of performing the scalar-to-tuple conversion.
SolutionKind matchScalarToTupleTypes(Type type1, TupleType *tuple2,
TypeMatchKind kind, unsigned flags,
ConstraintLocatorBuilder locator,
bool &trivial);
/// \brief Subroutine of \c matchTypes(), which matches up two function
/// types.
SolutionKind matchFunctionTypes(FunctionType *func1, FunctionType *func2,