[Tests] Fix Mono.Data.Tds tests on iOS (#5501)
[mono.git] / mcs / errors / cs0068.cs
1 // CS0068: `IFoo.OnFoo': event in interface cannot have an initializer
2 // Line: 14
3
4 using System;
5
6 class ErrorCS0068 {
7         public delegate void FooHandler ();
8         public void method () {}
9         public static void Main () {
10         }
11 }
12
13 interface IFoo {
14         event ErrorCS0068.FooHandler OnFoo = new ErrorCS0068.FooHandler (ErrorCS0068.method);
15 }