Files
mono/mcs/errors/cs0022.cs
T
Marek Safar f3a7b5e02c Updated to be more consistent
svn path=/trunk/mcs/; revision=45861
2005-06-13 12:15:59 +00:00

12 lines
400 B
C#

// cs0022.cs: Wrong number of indexes `2' inside [], expected `1'
// 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]);
}
}