Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-096.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 12407dc5dbadf9e7b7fd0a77dc4798eec9e4c796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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);
	}
}