Merge pull request #4327 from vkargov/vk-abcremedy
[mono.git] / mcs / tests / test-anon-55.cs
1 using System;
2
3 public class Foo
4 {
5         protected delegate void Hello ();
6
7         protected void Test (Hello hello)
8         {
9                 hello ();
10         }
11
12         private void Private ()
13         {
14                 Console.WriteLine ("Private!");
15         }
16
17         public void Test ()
18         {
19                 Test (delegate {
20                         Private ();
21                 });
22         }
23 }
24
25 class X
26 {
27         public static void Main ()
28         {
29                 Foo foo = new Foo ();
30                 foo.Test ();
31         }
32 }