X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Ferrors%2Fcs0021.cs;h=c11ab15b6c287ca328ada038f83084c5cbcc8503;hb=5e40f8980c5b236f57da360d30220103875c9581;hp=394822c47b87cc333aec388c3e6c618af3c53c7a;hpb=b6b13e72e91d5b529a6306ce53bda685932c77db;p=mono.git diff --git a/mcs/errors/cs0021.cs b/mcs/errors/cs0021.cs index 394822c47b8..c11ab15b6c2 100644 --- a/mcs/errors/cs0021.cs +++ b/mcs/errors/cs0021.cs @@ -1,11 +1,12 @@ -// cs0021.cs: Cannot apply indexing with [] to an expression of type `int' -// Line: 9 +// CS0021: Cannot apply indexing with [] to an expression of type `int' +// Line: 10 using System; -class ErrorCS0021 { - public static void Main () { +class Test +{ + 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]); } }