Fix warnings.
[mono.git] / mcs / errors / cs0079.cs
index d82ce8f8fa7ce9e2f8ef7fc4a3a5109d3d1f6762..04900c92c1c94c24bce5bfbc3d4e44c618a43e95 100644 (file)
@@ -4,7 +4,7 @@
 using System;
 
 class ErrorCS0079 {
-       delegate void Handler ();
+       public delegate void Handler ();
        event Handler privateEvent;
        public event Handler OnFoo {
                add {
@@ -20,9 +20,6 @@ class ErrorCS0079 {
        }
        
        public static void Main () {
-               ErrorCS0079 error = new ErrorCS0077 ();
-               error.OnFoo += new Handler (error.Callback);
-               error.privateEvent ();
        }
 }