2004-10-14 Umadevi S <sumadevi@novell.com>
[mono.git] / mcs / gmcs / modifiers.cs
index 52b2618df140741b7d4ee4865dfe7b05a3552c3f..da4bcfdc4bf7ffb2cfea40e70271779191a8b694 100755 (executable)
@@ -113,7 +113,7 @@ namespace Mono.CSharp {
                        // If we do not have static constructors, static methods
                        // can be invoked without initializing the type.
                        if (!caller.UserDefinedStaticConstructor &&
-                           !(caller is Interface))
+                           (caller.Kind != Kind.Interface))
                                t |= TypeAttributes.BeforeFieldInit;
                                
                        return t;