Author: martin
Date: 2006-01-18 11:30:01 -0500 (Wed, 18 Jan 2006)
New Revision: 55735

Added:
   trunk/mcs/errors/gcs0121.cs
Log:
New test.

Added: trunk/mcs/errors/gcs0121.cs
===================================================================
--- trunk/mcs/errors/gcs0121.cs 2006-01-18 16:29:08 UTC (rev 55734)
+++ trunk/mcs/errors/gcs0121.cs 2006-01-18 16:30:01 UTC (rev 55735)
@@ -0,0 +1,25 @@
+// CS0121: The call is ambiguous between the following methods or properties: 
`Foo<int,int>.Test<>(in int)' and `Foo<int,int>.Test<>(in int)'
+// Line: 23
+using System;
+
+public class Foo<T,U>
+{
+       public void Test (T index)
+       {
+               Console.WriteLine ("Test 1: {0}", index);
+       }
+
+       public void Test (U index)
+       {
+               Console.WriteLine ("Test 2: {0}", index);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+               Foo<int,int> foo = new Foo<int,int> ();
+               foo.Test (3);
+       }
+}


Property changes on: trunk/mcs/errors/gcs0121.cs
___________________________________________________________________
Name: svn:executable
   + *

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to