Sat Jul 13 17:32:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Sat, 13 Jul 2002 15:34:52 +0000 (15:34 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Sat, 13 Jul 2002 15:34:52 +0000 (15:34 -0000)
* typemanager.cs: register also enum_type in corlib.

svn path=/trunk/mcs/; revision=5762

mcs/mcs/ChangeLog
mcs/mcs/typemanager.cs

index 222f26121d4d9dcdfb5ed1403e359b8e0dd8e55f..81cb403a5d8dcbca86636b45ebadf514212e3953 100755 (executable)
@@ -1,4 +1,8 @@
 
+Sat Jul 13 17:32:53 CEST 2002 Paolo Molaro <lupus@ximian.com>
+
+       * typemanager.cs: register also enum_type in corlib.
+
 Sat Jul 13 15:59:47 CEST 2002 Paolo Molaro <lupus@ximian.com>
 
        * class.cs: allow calling this (but not base) initializers in structs.
index 4eb59bc2bc80dd3ce3ad3befbb006913af9d3d5c..4893d27e69b08f8389ecd38c6a922d5d6f998c68 100755 (executable)
@@ -655,14 +655,15 @@ public class TypeManager {
                        system_void_array_copyto_array_int = GetMethod (
                                system_array_type, "CopyTo", system_array_int_arg);
 
-                       Type [] system_type_type_arg = { system_type_type, system_type_type };
+                       Type [] system_type_type_arg = { system_type_type, system_type_type, system_type_type };
                        system_void_set_corlib_type_builders = GetMethod (
                                system_assemblybuilder_type, "SetCorlibTypeBuilders",
                                system_type_type_arg);
 
-                       object[] args = new object [2];
+                       object[] args = new object [3];
                        args [0] = object_type;
                        args [1] = value_type;
+                       args [2] = enum_type;
 
                        system_void_set_corlib_type_builders.Invoke (CodeGen.AssemblyBuilder, args);
                }