diff options
author | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-11-30 21:39:32 +0300 |
---|---|---|
committer | Jaime Anguiano Olarra <jaime@mono-cvs.ximian.com> | 2002-11-30 21:39:32 +0300 |
commit | e253027f049334a788532a08ed6981a67fd187c0 (patch) | |
tree | 78cdc41b115f4b37e08a41854f1ba91227796c15 /mcs/errors/cs0021.cs | |
parent | 33dd8381aa6064d231ccbc75c9ef0821d70dde42 (diff) |
Added test for C# Compiler ERROR CS0021
svn path=/trunk/mcs/; revision=9287
Diffstat (limited to 'mcs/errors/cs0021.cs')
-rw-r--r-- | mcs/errors/cs0021.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0021.cs b/mcs/errors/cs0021.cs new file mode 100644 index 00000000000..8650b540e11 --- /dev/null +++ b/mcs/errors/cs0021.cs @@ -0,0 +1,12 @@ +// cs0021.cs: You can't use and indexer with a type that doesn't support it. +// Line: 9 +using System; + +class ErrorCS0021 { + public static void Main () { + int i = 0; + Console.WriteLine ("Test for ERROR CS0021: You can't use the indexer operator with a type that doesn't support it"); + Console.WriteLine ("Get i[2]: {0}", i[2]); + } +} + |