use MOONLIGHT symbol
[mcs.git] / tests / gtest-045.cs
blob2036017109d0f7f3bd799f900b32a632270d86de
1 // Important test: Type inference
3 class Test<A,B>
5 public void Foo<U> (U u)
6 { }
8 public void Foo<V> (V[] v, V w)
9 { }
11 public void Hello<V,W> (V v, W w, Test<V,W> x)
12 { }
14 public void ArrayMethod<V> (params V[] args)
15 { }
18 class X
20 static void Main ()
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);