2005-06-13 Miguel de Icaza <miguel@novell.com>
[mono.git] / mcs / tests / gen-96.cs
1 using System;\r
2 \r
3 class Foo<T>\r
4 { }\r
5 \r
6 class Test\r
7 {\r
8         static void Hello<T> (Foo<T>[] foo, int i)\r
9         {\r
10                 Foo<T> element = foo [0];\r
11                 Console.WriteLine (element);\r
12                 if (i > 0)\r
13                         Hello<T> (foo, i - 1);\r
14         }\r
15 \r
16         public static void Quicksort<U> (Foo<U>[] arr)\r
17         {\r
18                 Hello<U> (arr, 1);\r
19         }\r
20 \r
21         static void Main ()\r
22         {\r
23                 Foo<int>[] foo = new Foo<int> [1];\r
24                 foo [0] = new Foo<int> ();\r
25                 Quicksort (foo);\r
26         }\r
27 }\r