summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0071.cs
blob: f39c9e9455397936a97a4b89f2d6eed56c2ffa02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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 {
	event Foo IFoo.OnFoo;
}