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

cs0117-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a62c853fe592ab8e25c2aff37e25345e555f830e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// CS0117: `A' does not contain a definition for `Foo'.
// Line: 15
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 ());
	}
}