X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs1501-5.cs;h=6a51f13592c8db1da9f9030bc078c55ca004a13e;hb=233bbcaaa3aa9f100ef6266236bf0b5a32b49a65;hp=f84ef83627cbc46c7ef981d26d1505965bef5cba;hpb=b6b13e72e91d5b529a6306ce53bda685932c77db;p=mono.git diff --git a/mcs/errors/cs1501-5.cs b/mcs/errors/cs1501-5.cs index f84ef83627c..6a51f13592c 100644 --- a/mcs/errors/cs1501-5.cs +++ b/mcs/errors/cs1501-5.cs @@ -1,20 +1,15 @@ -// cs1501.cs : No overload for method `MyDelegate' takes `0' arguments -// Line : 17 +// CS1501: No overload for method `Foo' takes `1' arguments +// Line: 12 -public class Blah { - - public delegate int MyDelegate (int i, int j); - - public int Foo (int i, int j) +public class Test +{ + static void Foo (int a, int b = 1, int c = 2) { - return i+j; } - + public static void Main () { - Blah i = new Blah (); - - MyDelegate del = new MyDelegate (); + Foo (c : -1); } }