projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
109bb03
)
New test.
author
Marek Safar
<marek.safar@gmail.com>
Mon, 24 Nov 2008 16:53:25 +0000
(16:53 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Mon, 24 Nov 2008 16:53:25 +0000
(16:53 -0000)
svn path=/trunk/mcs/; revision=119808
mcs/errors/cs0121-6.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/errors/cs0121-6.cs
b/mcs/errors/cs0121-6.cs
new file mode 100644
(file)
index 0000000..
743edf8
--- /dev/null
+++ b/
mcs/errors/cs0121-6.cs
@@ -0,0
+1,15
@@
+// CS0121: The call is ambiguous between the following methods or properties: `C.Foo(object, string)' and `C.Foo(int, object)'
+// Line: 13
+
+class C
+{
+ delegate void D (int x, string s);
+
+ static void Foo (object o, string s) { }
+ static void Foo (int x, object o) { }
+
+ static void Main ()
+ {
+ D d = Foo;
+ }
+}