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

test-112.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 552cc0a6901347f36fced13b5ee4c17837695ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//
// This tests the use of an array indexer on value exprclasses
// and not only variables
//
class X {
	static int [] g ()
	{
		int [] x = new int [5];
		x [1] = 10;
		return x;
	}

	public static int Main ()
	{
		if (g () [1] == 10)
				return 0;
		return 1;
	}
}