Combine some if statements.
authorMiguel de Icaza <miguel@gnome.org>
Tue, 8 Apr 2003 22:55:06 +0000 (22:55 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 8 Apr 2003 22:55:06 +0000 (22:55 -0000)
svn path=/trunk/mcs/; revision=13360

mcs/mcs/ChangeLog
mcs/mcs/class.cs

index 508c8d61477dc834bd7b2dfd2463e22c0a759426..436f79c972f8857cd179d707557722a86f423ca8 100755 (executable)
@@ -1,3 +1,7 @@
+2003-01-27 Jackson Harper <jackson@latitudegeo.com>
+
+       * class.cs: Combine some if statements.
+
 2003-01-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * driver.cs: fixed bug #37187.
index d10c4eb206ef239f6af093f26026843b78374252..26dda5324adb30520de9ec2b163c22b5dc560de1 100755 (executable)
@@ -808,14 +808,13 @@ namespace Mono.CSharp {
                        if (!is_class && !have_nonstatic_fields){
                                TypeBuilder.DefineField ("$PRIVATE$", TypeManager.byte_type,
                                                         FieldAttributes.Private);
+                               // add interfaces that were not added at type creation
+                               if (ifaces != null) {
+                                       foreach (Type i in ifaces)
+                                               TypeBuilder.AddInterfaceImplementation (i);
+                               }
                        }
 
-                       // add interfaces that were not added at type creation (weird API issue)
-                       if (!is_class && !have_nonstatic_fields && (ifaces != null)) {
-                               foreach (Type i in ifaces)
-                                       TypeBuilder.AddInterfaceImplementation (i);
-                       }
-                       
                        //
                        // Finish the setup for the EmitContext
                        //