Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0068.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9565ad4a8ee506388959357c0e851a2a4f123d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0068.cs: Event in interface can't have 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);
}