diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-11-30 21:50:08 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-11-30 21:50:08 +0300 |
commit | cb985ccfd9be4bc46aafe6e3a835ba5c9b17ab93 (patch) | |
tree | 6bc4f1b3c322fc975c4256eb96e74ebcc2e7f141 /mcs/errors/cs0022.cs | |
parent | 4b684ce4fb4e31347e13ffa8a123627ef4a40517 (diff) |
Test for the C# Compiler Error CS0022: Wrong number of fields in indexer.
svn path=/trunk/mcs/; revision=9289
Diffstat (limited to 'mcs/errors/cs0022.cs')
-rw-r--r-- | mcs/errors/cs0022.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0022.cs b/mcs/errors/cs0022.cs new file mode 100644 index 00000000000..a0319016e3e --- /dev/null +++ b/mcs/errors/cs0022.cs @@ -0,0 +1,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]); + } +} |