2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / errors / cs0122-30.cs
1 // CS0122: `MainClass.Nested.Delegate()' is inaccessible due to its protection level
2 // Line: 18
3
4 delegate int TestDelegate ();
5
6 public class MainClass
7 {
8         class Nested
9         {
10                 static int Delegate ()
11                 {
12                         return 0;
13                 }
14         }
15
16         public static void Main ()
17         {
18                 TestDelegate delegateInstance = new TestDelegate (Nested.Delegate);
19         }
20 }
21