-// 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);
}
}