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
path: root/mcs
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2004-09-06 23:01:38 +0400
committerMartin Baulig <martin@novell.com>2004-09-06 23:01:38 +0400
commit0ee7506e6e89ca0a1eb58d1e62c372f4ea67df6f (patch)
tree6d8127315dac3e57f27add1a4d2ff3b8246ef5cd /mcs
parent4a19caa4a3c77ef277780e8afe0d5e737000a76d (diff)
2004-09-06 Martin Baulig <martin@ximian.com>
* generic.cs (ConstructedType.CheckConstraints): Allow builtin types for the constructor constraint. svn path=/trunk/mcs/; revision=33439
Diffstat (limited to 'mcs')
-rwxr-xr-xmcs/gmcs/ChangeLog5
-rw-r--r--mcs/gmcs/generic.cs3
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/gmcs/ChangeLog b/mcs/gmcs/ChangeLog
index 1c64db91292..6e6d03ae562 100755
--- a/mcs/gmcs/ChangeLog
+++ b/mcs/gmcs/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-06 Martin Baulig <martin@ximian.com>
+
+ * generic.cs (ConstructedType.CheckConstraints): Allow builtin
+ types for the constructor constraint.
+
2004-09-03 Martin Baulig <martin@ximian.com>
* class.cs (TypeContainer.DefineDefaultConstructor): Put this back
diff --git a/mcs/gmcs/generic.cs b/mcs/gmcs/generic.cs
index 4028a4f88cb..6aa080e08fe 100644
--- a/mcs/gmcs/generic.cs
+++ b/mcs/gmcs/generic.cs
@@ -951,6 +951,9 @@ namespace Mono.CSharp {
if (!TypeManager.HasConstructorConstraint (ptype))
return true;
+ if (TypeManager.IsBuiltinType (atype))
+ return true;
+
MethodGroupExpr mg = Expression.MemberLookup (
ec, atype, ".ctor", MemberTypes.Constructor,
BindingFlags.Public | BindingFlags.Instance |