Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1061.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 611ad4c38c6ed8329f96cc2773dcadcfcab07d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 ());
	}
}