New test.
authorMarek Safar <marek.safar@gmail.com>
Mon, 24 Nov 2008 16:53:25 +0000 (16:53 -0000)
committerMarek 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]

diff --git a/mcs/errors/cs0121-6.cs b/mcs/errors/cs0121-6.cs
new file mode 100644 (file)
index 0000000..743edf8
--- /dev/null
@@ -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;
+       }
+}