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

test-122.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27a08e8addec545af2d3d05f694acd95c4a1bfc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Tests that a nested class has full access to its container members
//
// A compile-only test.
//

class A {
        private static int X = 0;

        class B {
                void Foo ()
                {
                        ++ X;
                }
        }

        public static int Main ()
        {
		return 0;
        }
}