Browse Source

2005-01-18 Geoff Norton <[email protected]>

        * ModuleBuilder.cs: Interfaces should have null BaseType.
        Fixes #71301.



svn path=/trunk/mcs/; revision=39111
Geoff Norton 21 years ago
parent
commit
db52d7c658

+ 5 - 0
mcs/class/corlib/System.Reflection.Emit/ChangeLog

@@ -1,3 +1,8 @@
+2005-01-18  Geoff Norton  <[email protected]>
+
+	* ModuleBuilder.cs: Interfaces should have null BaseType.
+	Fixes #71301.
+
 2005-01-18  Miguel de Icaza  <[email protected]>
 
 	* TypeBuilder.cs: Add check for creation.  Fix from Geoff.

+ 2 - 0
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs

@@ -206,6 +206,8 @@ namespace System.Reflection.Emit {
 		}
 
 		public TypeBuilder DefineType (string name, TypeAttributes attr) {
+			if ((attr & TypeAttributes.Interface) != 0)
+				return DefineType (name, attr, null, null);
 			return DefineType (name, attr, typeof(object), null);
 		}