mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
remove the ASTContext argument from Type::transform,
(various) FunctionType::get's, ArrayType::get, ArraySliceType::get, OptionalType::get, and a few other places. There is more to be done here, but this is all I plan to do for now. Swift SVN r11497
This commit is contained in:
@@ -496,7 +496,7 @@ tryUserConversion(ConstraintSystem &cs, Type type, ConstraintKind kind,
|
||||
// The conversion function will have function type TI -> TO, for fresh
|
||||
// type variables TI and TO.
|
||||
cs.addValueMemberConstraint(type, name,
|
||||
FunctionType::get(inputTV, outputTV, ctx),
|
||||
FunctionType::get(inputTV, outputTV),
|
||||
memberLocator);
|
||||
|
||||
// A conversion function must accept an empty parameter list ().
|
||||
@@ -1128,7 +1128,7 @@ ConstraintSystem::simplifyConstructionConstraint(Type valueType, Type argType,
|
||||
// match on the result type because the constructors for enums and struct
|
||||
// types always return a value of exactly that type.
|
||||
addValueMemberConstraint(valueType, name,
|
||||
FunctionType::get(tv, valueType, context),
|
||||
FunctionType::get(tv, valueType),
|
||||
getConstraintLocator(
|
||||
locator,
|
||||
ConstraintLocator::ConstructorMember));
|
||||
|
||||
Reference in New Issue
Block a user