GenericParameter.cs: override Module properly
[mcs.git] / tests / gtest-096.cs
blob262511bd9ae655d93089a31981f187699947a12a
1 using System;
3 class Foo<T>
4 { }
6 class Test
8 static void Hello<T> (Foo<T>[] foo, int i)
10 Foo<T> element = foo [0];
11 Console.WriteLine (element);
12 if (i > 0)
13 Hello<T> (foo, i - 1);
16 public static void Quicksort<U> (Foo<U>[] arr)
18 Hello<U> (arr, 1);
21 static void Main ()
23 Foo<int>[] foo = new Foo<int> [1];
24 foo [0] = new Foo<int> ();
25 Quicksort (foo);