Merge branch 'xml-fixes' of https://github.com/myeisha/mono into myeisha-xml-fixes
[mono-project.git] / mcs / errors / cs1061.cs
blobe95697181aa0a719ed84c46ec377ce173f09ac0c
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: 16
4 using System;
5 using System.Runtime.CompilerServices;
7 class A
9 [IndexerName ("Foo")]
10 public int this [int index] {
11 get { return index; }
14 static int Test (A a)
16 return a.Foo;
19 public static void Main ()
21 Test (new A ());