+ if (BuildStarted != null) {
+ BuildStarted();
+ }
+ BuildStarted = new SomeEventHandler (a);
+ if (BuildStarted () != 1)
+ return 50;
+
+ return 0;
+ }
+}
+
+//
+// This class is just to test a bug in mcs; where we used to fail
+// when accessing a static event, from an instance method.
+//
+public class Static {
+ public static event EventHandler Test;
+
+ public void Fire()
+ {
+ if ( Test != null )
+ Test (null, null);