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

delegate int TestDelegate ();

public class MainClass
{
	class Nested
	{
		static int Delegate ()
		{
			return 0;
		}
	}

	public static void Main ()
	{
		TestDelegate delegateInstance = new TestDelegate (Nested.Delegate);
	}
}