Merge pull request #4845 from lambdageek/dev-coop-delegates
[mono.git] / mcs / errors / cs1061.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 an assembly reference?
2 // Line: 16
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         }
13
14         static int Test (A a)
15         {
16                 return a.Foo;
17         }
18
19         public static void Main ()
20         {
21                 Test (new A ());
22         }
23 }