Flush (work in progress)
[mono.git] / mcs / errors / cs1061-2.cs
1 // CS1061: Type `A' does not contain a definition for `Foo' and no extension method `Foo' of type `A' could be found (are you missing a using directive or an assembly reference?)
2 // Line: 17
3
4 using System;
5 using System.Runtime.CompilerServices;
6
7 class A
8 {
9         [IndexerName ("Foo")]
10         public int this [int index] {
11                 get { return index; }
12                 set { ; }
13         }
14
15         static void Test (A a, int value)
16         {
17                 a.Foo = value;
18         }
19
20         public static void Main ()
21         {
22                 Test (new A (), 9);
23         }
24 }