[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs0069.cs
1 // CS0069: Event in interface cannot have add or remove accessors
2 // Line: 13
3
4 using System;
5
6 public delegate void FooHandler ();
7
8 interface IBar {
9         event FooHandler OnFoo {
10                 add { }
11                 remove { }
12         }
13 }
14