X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs1501-5.cs;h=6a51f13592c8db1da9f9030bc078c55ca004a13e;hb=a9e73e7370307c2fb346b645c890bb91fd875d33;hp=f84ef83627cbc46c7ef981d26d1505965bef5cba;hpb=00e065484e866f3a0349c882f804c4a79a13ee5c;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); } }