[xbuild] Add support for Before/AfterTargets.
[mono.git] / mcs / errors / cs0021-3.cs
index c2f43ca9ca8cd149ebe1829a2b5a3c5289067781..0c2ff6b192158bd00ceacc5388030ce393bd9b2d 100644 (file)
@@ -1,16 +1,8 @@
-// cs0021-2.cs: Cannot apply indexing with [] to an expression of type `Foo'
-// Line: 14
-
-using System;
-       
-public class Foo {
-       private int this[int index] { get { return index; } }
-}
-       
-public class Bar {
-       public static void Main ()
-       {
-               Foo foo = new Foo ();
-               Console.WriteLine (foo[5]);
-       }
+// CS0021: Cannot apply indexing with [] to an expression of type `G'
+// Line: 5
+public class Foo<G> {
+    public static void Bar() {
+        int i = default(G)[0];
+    }
 }
+