Merge pull request #3997 from lateralusX/jlorenss/win-api-family-support-safearray
[mono.git] / mcs / errors / cs0022.cs
1 // CS0022: Wrong number of indexes `2' inside [], expected `1'
2 // Line: 9
3 using System;
4
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]);
10         }
11 }