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: d7784d1536203b5c6aea190c08ea4fce9c40016e (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: `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);
	}
}