Skip to content

Commit 588d42c

Browse files
committed
[Sema] NFC: Move FreeTypeVariableBinding to constraint system header
1 parent f26bce3 commit 588d42c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,17 @@ enum ContextualTypePurpose {
106106
CTP_CannotFail, ///< Conversion can never fail. abort() if it does.
107107
};
108108

109+
/// Specify how we handle the binding of underconstrained (free) type variables
110+
/// within a solution to a constraint system.
111+
enum class FreeTypeVariableBinding {
112+
/// Disallow any binding of such free type variables.
113+
Disallow,
114+
/// Allow the free type variables to persist in the solution.
115+
Allow,
116+
/// Bind the type variables to UnresolvedType to represent the ambiguity.
117+
UnresolvedType
118+
};
119+
109120
namespace constraints {
110121

111122
/// Describes the algorithm to use for trailing closure matching.

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,6 @@ enum class Comparison {
181181
Worse
182182
};
183183

184-
/// Specify how we handle the binding of underconstrained (free) type variables
185-
/// within a solution to a constraint system.
186-
enum class FreeTypeVariableBinding {
187-
/// Disallow any binding of such free type variables.
188-
Disallow,
189-
/// Allow the free type variables to persist in the solution.
190-
Allow,
191-
/// Bind the type variables to UnresolvedType to represent the ambiguity.
192-
UnresolvedType
193-
};
194-
195184
/// A conditional conformance that implied some other requirements. That is, \c
196185
/// ConformingType conforming to \c Protocol may have required additional
197186
/// requirements to be satisfied.

0 commit comments

Comments
 (0)