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

cs0271.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5480ce3b2c957e94680fa1d9acde62f45525bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// cs0271.cs: The property or indexer 'P.Prop' cannot be used in this context because the get accessor is inaccessible
// Line: 19

class P
{
    public static int Prop
    {
	private get {
	    return 4;
	}
	set {}
    }
}

public class C
{
    public static int Main ()
    {
	return P.Prop;
    }
}