Merge pull request #3773 from mono/bockbuild-integration
[mono.git] / mcs / errors / cs0079.cs
index d82ce8f8fa7ce9e2f8ef7fc4a3a5109d3d1f6762..577b0155412c3c02c7c62fed2019203e0c070c7d 100644 (file)
@@ -1,10 +1,10 @@
-// cs0079.cs: Events can only appear on the left hand side of += or -=
+// CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
 // Line: 19
  
 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 ();
        }
 }