From: Marek Safar Date: Mon, 24 Nov 2008 16:53:25 +0000 (-0000) Subject: New test. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=9db13fe2540a5a5cc50669e8b5ddaef8b9d942ac;p=mono.git New test. svn path=/trunk/mcs/; revision=119808 --- diff --git a/mcs/errors/cs0121-6.cs b/mcs/errors/cs0121-6.cs new file mode 100644 index 00000000000..743edf8755c --- /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; + } +}