2009-11-12 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0022.cs
blob359ea09d41100d59106268fabc1fe4ab99ea8495
1 // cs0022.cs: Wrong number of indexes `2' inside [], expected `1'
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]);