Merge pull request #4615 from alexanderkyte/string_error_handling
[mono.git] / mcs / errors / cs0121-16.cs
1 // CS0121: The call is ambiguous between the following methods or properties: `Foo<int,int>.Test(int)' and `Foo<int,int>.Test(int)'
2 // Line: 23
3 using System;
4
5 public class Foo<T,U>
6 {
7         public void Test (T index)
8         {
9                 Console.WriteLine ("Test 1: {0}", index);
10         }
11
12         public void Test (U index)
13         {
14                 Console.WriteLine ("Test 2: {0}", index);
15         }
16 }
17
18 class X
19 {
20         static void Main ()
21         {
22                 Foo<int,int> foo = new Foo<int,int> ();
23                 foo.Test (3);
24         }
25 }