Merge pull request #4327 from vkargov/vk-abcremedy
[mono.git] / mcs / tests / test-122.cs
1 //
2 // Tests that a nested class has full access to its container members
3 //
4 // A compile-only test.
5 //
6
7 class A {
8         private static int X = 0;
9
10         class B {
11                 void Foo ()
12                 {
13                         ++ X;
14                 }
15         }
16
17         public static int Main ()
18         {
19                 return 0;
20         }
21 }