summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0122.cs
blob: 63831af10ade8cc5f377222c256f4767247f26e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0122: `Y.x()' is inaccessible due to its protection level
// Line: 15
using System;

class Y {
	void x () {}

}

class X {
	static int Main ()
	{
		Y y = new Y ();

		y.x ();
		return 0;
	}
}