projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[threadpool] Pass callback at initialization (#4546)
[mono.git]
/
mcs
/
errors
/
cs1501-5.cs
diff --git
a/mcs/errors/cs1501-5.cs
b/mcs/errors/cs1501-5.cs
index f84ef83627cbc46c7ef981d26d1505965bef5cba..6a51f13592c8db1da9f9030bc078c55ca004a13e 100644
(file)
--- 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 ()
{
public static void Main ()
{
- Blah i = new Blah ();
-
- MyDelegate del = new MyDelegate ();
+ Foo (c : -1);
}
}
}
}