mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-09 09:34:49 +09:00
Switch to AllowByRefLike naming in Mono as well (#102516)
This commit is contained in:
parent
7803a96303
commit
9a3d45a66d
2 changed files with 2 additions and 2 deletions
|
@ -1448,7 +1448,7 @@ typedef enum {
|
|||
GENERIC_PARAMETER_ATTRIBUTE_REFERENCE_TYPE_CONSTRAINT = 0x0004,
|
||||
GENERIC_PARAMETER_ATTRIBUTE_VALUE_TYPE_CONSTRAINT = 0x0008,
|
||||
GENERIC_PARAMETER_ATTRIBUTE_CONSTRUCTOR_CONSTRAINT = 0x0010,
|
||||
GENERIC_PARAMETER_ATTRIBUTE_ACCEPT_BYREFLIKE_CONSTRAINTS = 0x0020, // type argument can be ByRefLike
|
||||
GENERIC_PARAMETER_ATTRIBUTE_ALLOW_BYREFLIKE_CONSTRAINTS = 0x0020, // type argument can be ByRefLike
|
||||
GENERIC_PARAMETER_ATTRIBUTE_SPECIAL_CONSTRAINTS_MASK = 0x003c
|
||||
} GenericParameterAttributes;
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ is_valid_generic_instantiation (MonoGenericContainer *gc, MonoGenericContext *co
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (m_class_is_byreflike (paramClass) && (param_info->flags & GENERIC_PARAMETER_ATTRIBUTE_ACCEPT_BYREFLIKE_CONSTRAINTS) == 0)
|
||||
if (m_class_is_byreflike (paramClass) && (param_info->flags & GENERIC_PARAMETER_ATTRIBUTE_ALLOW_BYREFLIKE_CONSTRAINTS) == 0)
|
||||
return FALSE;
|
||||
|
||||
if (!param_info->constraints && !(param_info->flags & GENERIC_PARAMETER_ATTRIBUTE_SPECIAL_CONSTRAINTS_MASK))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue