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

gtest-276.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 01937e61f4506e7f46dde16f5af444c5077370c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;

class Tests {

	public static int Main () {
		int[] x = new int[] {100, 200};

		GenericClass<int>.Z (x, 0);

		return 0;
	}

	class GenericClass <T> {
		public static T Z (IList<T> x, int index)
		{
			return x [index];
		}
	}
}