summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0071-2.cs
blob: 39f0b244e81d04b9a122eeeffab5b886487e65d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0071: `ErrorCS0071.IFoo.OnFoo': An explicit interface implementation of an event must use property syntax
// Line: 13

using System;

public delegate void Foo (object source);

interface IFoo {
	event Foo OnFoo;
}

class ErrorCS0071 : IFoo {
	public event Foo IFoo.OnFoo;
}