2008-01-14 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / tests / test-276.cs
index f10a66cd16713428303c2fcbaf507ae05cc01475..a858dacd2f5f047e6f62eb3259f79819a34b95d2 100644 (file)
@@ -1,10 +1,10 @@
-// Test for bug #60459
+// Compiler options: -warnaserror -warn:4
 
 using System;
 using System.Reflection;
 
-public class EventTestClass {
-        public event EventHandler Elapsed;
+public class EventTestClass : IEventTest {
+        public event EventHandler Elapsed; // No warning is reported
 }
 
 public interface IEventTest {
@@ -14,7 +14,7 @@ public interface IEventTest {
 
 public class EntryPoint
 {
-       static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; }        
+       public static bool test (Type type) { return type.GetEvent ("Elapsed").IsSpecialName; } 
         public static int Main ()
         {
                 return (test (typeof (EventTestClass))