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

cs0154-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 16ef004c2d180aca5544acb4a87bcfd6a7c43e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0154-2.cs: error CS0154: The property or indexer 'B.Foo' cannot be used in this context because it lacks the get accessor
// Line: 13
// this is bug 55780.

class A {
	public int Foo { get { return 1; } }
}

class B : A {
	public new int Foo { set { } }
	static void Main ()
	{
		System.Console.WriteLine (new B ().Foo);
	}
}