**** Merged from MCS ****
[mono-project.git] / mcs / errors / cs0021.cs
blob8650b540e1125d905195aa77c60055ae973042d5
1 // cs0021.cs: You can't use and indexer with a type that doesn't support it.
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]);