X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0071-2.cs;h=39f0b244e81d04b9a122eeeffab5b886487e65d4;hb=c866c3eefb79ea86be468e4f95c7012fa3d2db4f;hp=b40878f362910b9c3322750f08f24b886e3a71ee;hpb=da4f9e9b2afb23791029d0bb09d78b868aabd870;p=mono.git diff --git a/mcs/errors/cs0071-2.cs b/mcs/errors/cs0071-2.cs index b40878f3629..39f0b244e81 100644 --- a/mcs/errors/cs0071-2.cs +++ b/mcs/errors/cs0071-2.cs @@ -1,4 +1,4 @@ -// cs0071-2.cs: An explicit interface implementation of an event must use property syntax +// CS0071: `ErrorCS0071.IFoo.OnFoo': An explicit interface implementation of an event must use property syntax // Line: 13 using System; @@ -6,13 +6,11 @@ using System; public delegate void Foo (object source); interface IFoo { - event Foo OnFoo; + event Foo OnFoo; } class ErrorCS0071 : IFoo { - public event Foo IFoo.OnFoo () { } - public static void Main () { - } + public event Foo IFoo.OnFoo; }