Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/gmcs/generic.cs')
-rw-r--r--mcs/gmcs/generic.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/mcs/gmcs/generic.cs b/mcs/gmcs/generic.cs
index 204733fe9be..fab459b36ed 100644
--- a/mcs/gmcs/generic.cs
+++ b/mcs/gmcs/generic.cs
@@ -33,7 +33,7 @@ namespace Mono.CSharp {
}
public bool HasValueTypeConstraint {
- get { return (Attributes & GenericParameterAttributes.ValueTypeConstraint) != 0; }
+ get { return (Attributes & GenericParameterAttributes.NotNullableValueTypeConstraint) != 0; }
}
public virtual bool HasClassConstraint {
@@ -199,7 +199,7 @@ namespace Mono.CSharp {
if (sc == SpecialConstraint.ReferenceType)
attrs |= GenericParameterAttributes.ReferenceTypeConstraint;
else
- attrs |= GenericParameterAttributes.ValueTypeConstraint;
+ attrs |= GenericParameterAttributes.NotNullableValueTypeConstraint;
continue;
}
@@ -1691,7 +1691,7 @@ namespace Mono.CSharp {
if (tc != null)
return tc.IsGeneric ? tc.CountTypeParameters : 0;
else
- return t.HasGenericArguments ? t.GetGenericArguments ().Length : 0;
+ return t.IsGenericType ? t.GetGenericArguments ().Length : 0;
}
public static Type[] GetTypeArguments (Type t)
@@ -2127,7 +2127,7 @@ namespace Mono.CSharp {
if (infered_types [i] == null)
return false;
- method = method.BindGenericParameters (infered_types);
+ method = method.MakeGenericMethod (infered_types);
return true;
}
@@ -2198,7 +2198,7 @@ namespace Mono.CSharp {
if (!InferTypeArguments (param_types, arg_types, infered_types))
return false;
- method = method.BindGenericParameters (infered_types);
+ method = method.MakeGenericMethod (infered_types);
return true;
}
@@ -2226,7 +2226,7 @@ namespace Mono.CSharp {
if (!InferTypeArguments (param_types, arg_types, infered_types))
return false;
- method = method.BindGenericParameters (infered_types);
+ method = method.MakeGenericMethod (infered_types);
return true;
}