X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0467.cs;h=b37716a557c835340cad2c08a80b650bcc35c7d2;hb=3a7a355522e9d3c1f91f0a5ddf6b96971174e2bd;hp=86acc2e34ad39d86aec1c5c26451c344777df9ca;hpb=af90548a08ef5effc93b083b7eec44daa178b141;p=mono.git diff --git a/mcs/errors/cs0467.cs b/mcs/errors/cs0467.cs index 86acc2e34ad..b37716a557c 100644 --- a/mcs/errors/cs0467.cs +++ b/mcs/errors/cs0467.cs @@ -1,32 +1,29 @@ -// cs0467.cs: Ambiguity between method `ICounter.Count(int)' and non-method `IList.Count'. Using method `ICounter.Count(int)' -// Line: 30 -// Compiler options: -warnaserror -warn:2 +// CS0467: Ambiguity between method `IMethod.Count()' and invocable non-method `IList.Count'. Using method group +// Line: 27 +// Compiler options: -warn:2 -warnaserror using System; -interface IList +delegate void D (int i); + +interface IList { - int Count { get; set; } + D Count { get; } } -interface ICounter -{ - void Count (int i); +interface IMethod +{ + int Count (); } - -interface IEx -{ - void Count (params int[] i); -} -interface IListCounter: IEx, IList, ICounter -{ +interface IListCounter: IList, IMethod +{ } -class Test +class Test { static void Foo (IListCounter t) { - t.Count (1); + t.Count (); } -} \ No newline at end of file +}