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

cs0122-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3eb0217223f9e7e8155dc82fc100c0e0339efdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// cs0122.cs: prop is not accessible due to its protection level
// Line: 19
// Compiler options: -t:library

class A
{
        int i;

        int prop
        {
                set { i = value; }
        }
}

class B : A
{
        void M ()
        {
                prop = 2;
        }
}