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

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