-// cs0021-2.cs: Cannot apply indexing with [] to an expression of type `System.Array'
+// CS0021: Cannot apply indexing with [] to an expression of type `System.Array'
// Line: 9
using System;
-class X {
-
-public void Foo (Array bar)
+class X
{
- object baz = bar[0];
-}
-
- static void Main () {}
+ public void Foo (Array bar)
+ {
+ object baz = bar[0];
+ }
}