Switch to compiler-tester
[mono.git] / mcs / tests / gtest-045.cs
1 // Important test: Type inference
2
3 class Test<A,B>
4 {
5         public void Foo<U> (U u)
6         { }
7
8         public void Foo<V> (V[] v, V w)
9         { }
10
11         public void Hello<V,W> (V v, W w, Test<V,W> x)
12         { }
13
14         public void ArrayMethod<V> (params V[] args)
15         { }
16 }
17
18 class X
19 {
20         static void Main ()
21         {
22                 Test<float,int> test = new Test<float,int> ();
23                 test.Foo ("Hello World");
24                 test.Foo (new long[] { 3, 4, 5 }, 9L);
25                 test.Hello (3.14F, 9, test);
26                 test.ArrayMethod (3.14F, (float) 9 / 3);
27         }
28 }
29