2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0021.cs
blob394822c47b87cc333aec388c3e6c618af3c53c7a
1 // cs0021.cs: Cannot apply indexing with [] to an expression of type `int'
2 // Line: 9
3 using System;
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]);