Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-11-30 21:39:32 +0300
committerJaime Anguiano Olarra <jaime@mono-cvs.ximian.com>2002-11-30 21:39:32 +0300
commite253027f049334a788532a08ed6981a67fd187c0 (patch)
tree78cdc41b115f4b37e08a41854f1ba91227796c15 /mcs/errors/cs0021.cs
parent33dd8381aa6064d231ccbc75c9ef0821d70dde42 (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.cs12
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]);
+ }
+}
+