@@ -161,8 +161,8 @@ enum TypeVariableOptions {
161
161
// / Whether the type variable can be bound to an lvalue type or not.
162
162
TVO_CanBindToLValue = 0x01 ,
163
163
164
- // / Whether the type variable can be bound to an inout type or not.
165
- TVO_CannotBindToInOut = 0x02 ,
164
+ // / Whether the type variable is a generic type parameter or not.
165
+ TVO_IsGenericTypeParam = 0x02 ,
166
166
167
167
// / Whether a more specific deduction for this type variable implies a
168
168
// / better solution to the constraint system.
@@ -225,7 +225,7 @@ class TypeVariableType::Implementation {
225
225
226
226
// / Whether this type variable can bind to an inout type.
227
227
bool canBindToInOut () const {
228
- return !(getRawOptions () & TVO_CannotBindToInOut );
228
+ return !(getRawOptions () & TVO_IsGenericTypeParam );
229
229
}
230
230
231
231
// / Whether this type variable prefers a subtype binding over a supertype
@@ -348,7 +348,7 @@ class TypeVariableType::Implementation {
348
348
if (record)
349
349
recordBinding (*record);
350
350
getTypeVariable ()->Bits .TypeVariableType .Options &= ~TVO_CanBindToLValue;
351
- getTypeVariable ()->Bits .TypeVariableType .Options |= TVO_CannotBindToInOut ;
351
+ getTypeVariable ()->Bits .TypeVariableType .Options |=TVO_IsGenericTypeParam ;
352
352
}
353
353
}
354
354
@@ -392,7 +392,7 @@ class TypeVariableType::Implementation {
392
392
rep->getImpl ().getTypeVariable ()->Bits .TypeVariableType .Options
393
393
&= ~TVO_CanBindToLValue;
394
394
rep->getImpl ().getTypeVariable ()->Bits .TypeVariableType .Options
395
- |= TVO_CannotBindToInOut ;
395
+ |= TVO_IsGenericTypeParam ;
396
396
}
397
397
}
398
398
0 commit comments