summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0272.cs
blob: 76b84928fc98f584aa8bee15bbcdba1db624c5de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0272: The property or indexer `P.Prop' cannot be used in this context because the set accessor is inaccessible
// Line: 19

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

public class C
{
    public static void Main ()
    {
	P.Prop = 453422;
    }
}