2007-04-19 Chris Toshok <toshok@ximian.com>
[mcs.git] / errors / gcs0121.cs
blob8fd087d681266c08d27769c3fd82767dc98fc083
1 // CS0121: The call is ambiguous between the following methods or properties: `Foo<int,int>.Test(in int)' and `Foo<int,int>.Test(in int)'
2 // Line: 23
3 using System;
5 public class Foo<T,U>
7 public void Test (T index)
9 Console.WriteLine ("Test 1: {0}", index);
12 public void Test (U index)
14 Console.WriteLine ("Test 2: {0}", index);
18 class X
20 static void Main ()
22 Foo<int,int> foo = new Foo<int,int> ();
23 foo.Test (3);