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

cs0022.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a0319016e3ee9e5e39588ec16beedce3e0ca85cb (plain)
1
2
3
4
5
6
7
8
9
10
11
// cs0022.cs: Wrong number of fields inside the indexer.
// Line: 9
using System;

class ErrorCS0022 {
	static void Main () {
		int[] integer_array = {0, 1};
		Console.WriteLine ("Test for Error CS0022: The compiler should say wrong number of fields inside the indexer");
		Console.WriteLine ("Trying to access integer_array[2, 3] in a one-dimensional array: {0}", integer_array[2,3]);
	}
}