Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

24 lines
417 B
C#

// 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?
// Line: 16
using System;
using System.Runtime.CompilerServices;
class A
{
[IndexerName ("Foo")]
public int this [int index] {
get { return index; }
}
static int Test (A a)
{
return a.Foo;
}
public static void Main ()
{
Test (new A ());
}
}