2005-06-05 Peter Bartok <pbartok@novell.com>
[mono.git] / mcs / errors / cs0021.cs
1 // cs0021.cs: You can't use and indexer with a type that doesn't support it.
2 // Line: 9 
3 using System;
4
5 class ErrorCS0021 {
6         public static void Main () {
7                 int i = 0;
8                 Console.WriteLine ("Test for ERROR CS0021: You can't use the indexer operator with a type that doesn't support it");
9                 Console.WriteLine ("Get i[2]: {0}", i[2]);
10         }
11 }
12