File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff 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+
109120namespace constraints {
110121
111122// / Describes the algorithm to use for trailing closure matching.
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments