mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ConstraintSystem] NFC: Generalize DefaultClosureType constraint
This constraint is useful in more places than closures because it gives a way to provide a "fallback type" without it having effect on inference.
This commit is contained in:
@@ -4852,11 +4852,12 @@ private:
|
||||
TypeMatchOptions flags,
|
||||
ConstraintLocatorBuilder locator);
|
||||
|
||||
/// Attempt to simplify the given defaultable closure type constraint.
|
||||
SolutionKind simplifyDefaultClosureTypeConstraint(
|
||||
Type closureType, Type inferredType,
|
||||
ArrayRef<TypeVariableType *> referencedOuterParameters,
|
||||
TypeMatchOptions flags, ConstraintLocatorBuilder locator);
|
||||
/// Attempt to simplify the given fallback type constraint.
|
||||
SolutionKind
|
||||
simplifyFallbackTypeConstraint(Type defaultableType, Type fallbackType,
|
||||
ArrayRef<TypeVariableType *> referencedVars,
|
||||
TypeMatchOptions flags,
|
||||
ConstraintLocatorBuilder locator);
|
||||
|
||||
/// Attempt to simplify a property wrapper constraint.
|
||||
SolutionKind simplifyPropertyWrapperConstraint(Type wrapperType, Type wrappedValueType,
|
||||
|
||||
Reference in New Issue
Block a user