summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0122-22.cs
blob: df6424489731663e8a4fc81f4fbbf31577a8a066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// CS0122: `Test.A.B' is inaccessible due to its protection level
// Line: 6

namespace Test
{
	public sealed class A
	{
		private class B
		{
			public static void Method ()
			{
			}
		}
	}
	
	class MainClass
	{
		public static void Main(string[] args)
		{
			A.B.Method ();
		}
	}
}