Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-290.cs
index 99ebc8217e4fd32926e3c1c6466288068839091d..76c7d2c1e7dcca3ebc175fed6f1872b4f2582cd4 100644 (file)
@@ -6,8 +6,9 @@ class EntryPoint {
        delegate void EventHandler (object sender);
        static event EventHandler FooEvent;
        static void bar_f (object sender) {}
-       static void Main () {
-               FooEvent (null);
+       public static void Main () {
+               if (FooEvent != null)
+                       FooEvent (null);
                object bar = new EventHandler (bar_f);
        }
 }