Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
392 B
C#

using System;
class Foo<T>
{ }
class Test
{
static void Hello<T> (Foo<T>[] foo, int i)
{
Foo<T> element = foo [0];
Console.WriteLine (element);
if (i > 0)
Hello<T> (foo, i - 1);
}
public static void Quicksort<U> (Foo<U>[] arr)
{
Hello<U> (arr, 1);
}
public static void Main ()
{
Foo<int>[] foo = new Foo<int> [1];
foo [0] = new Foo<int> ();
Quicksort (foo);
}
}