Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0021.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8650b540e1125d905195aa77c60055ae973042d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// cs0021.cs: You can't use and indexer with a type that doesn't support it.
// 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]);
	}
}