[System.Core] SLE from CoreFX including interpreter
[mono.git] / mcs / tests / test-anon-87.cs
1 using System;
2
3 namespace Bug
4 {
5         public delegate void D ();
6         
7         class AA : BB
8         {
9                 public AA (BB bb)
10                         : base (bb.Value)
11                 {
12                         D d = delegate () {
13                                 bb.Foo ();
14                                 TestMe ();
15                         };
16                 }
17                 
18                 void TestMe ()
19                 {
20                 }
21                 
22                 public static int Main ()
23                 {
24                         new AA (new BB ("a"));
25                         return 0;
26                 }
27         }
28         
29         class BB
30         {
31                 public string Value = "test";
32                 
33                 public BB (string s)
34                 {
35                 }
36                 
37                 public void Foo ()
38                 {
39                 }
40         }
41 }