summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0068.cs
blob: f53f341847bc41b5aca767c381059c6f9cb931f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS0068: `IFoo.OnFoo': event in interface cannot have an initializer
// Line: 14

using System;

class ErrorCS0068 {
	public delegate void FooHandler ();
	public void method () {}
	public static void Main () {
	}
}

interface IFoo {
	event ErrorCS0068.FooHandler OnFoo = new ErrorCS0068.FooHandler (ErrorCS0068.method);
}