2010-07-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / errors / cs0021.cs
1 // cs0021.cs: Cannot apply indexing with [] to an expression of type `int'
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