1 // Important test: Type inference
5 public void Foo<U> (U u)
8 public void Foo<V> (V[] v, V w)
11 public void Hello<V,W> (V v, W w, Test<V,W> x)
14 public void ArrayMethod<V> (params V[] args)
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);