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

25 lines
445 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: 17
using System;
using System.Runtime.CompilerServices;
class A
{
[IndexerName ("Foo")]
public int this [int index] {
get { return index; }
set { ; }
}
static void Test (A a, int value)
{
a.Foo = value;
}
public static void Main ()
{
Test (new A (), 9);
}
}