-// cs0069.cs: Event cannot have add or remove accessors in an interface.
+// CS0069: Event in interface cannot have add or remove accessors
// Line: 13
using System;
-class ErrorCS0069 {
- public delegate void FooHandler ();
- public static void Main () {
- }
-}
+public delegate void FooHandler ();
interface IBar {
- event OnFoo {
+ event FooHandler OnFoo {
add { }
remove { }
}