Files
mono/mcs/errors/cs0021.cs
T
Marek Safar f3a7b5e02c Updated to be more consistent
svn path=/trunk/mcs/; revision=45861
2005-06-13 12:15:59 +00:00

13 lines
335 B
C#

// cs0021.cs: Cannot apply indexing with [] to an expression of type `int'
// 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]);
}
}