**** Merged from MCS ****
[mono-project.git] / mcs / errors / cs0022.cs
bloba0319016e3ee9e5e39588ec16beedce3e0ca85cb
1 // cs0022.cs: Wrong number of fields inside the indexer.
2 // Line: 9
3 using System;
5 class ErrorCS0022 {
6 static void Main () {
7 int[] integer_array = {0, 1};
8 Console.WriteLine ("Test for Error CS0022: The compiler should say wrong number of fields inside the indexer");
9 Console.WriteLine ("Trying to access integer_array[2, 3] in a one-dimensional array: {0}", integer_array[2,3]);