Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-102.cs
1 using System;
2
3 public delegate void Simple ();
4
5 public delegate Simple Foo ();
6
7 class X
8 {
9         public void Hello<U> (U u)
10         { }
11
12         public void Test<T> (T t)
13         {
14                 T u = t;
15                 Hello (u);
16                 Foo foo = delegate {
17                         T v = u;
18                         Hello (u);
19                         return delegate {
20                                 Hello (u);
21                                 Hello (v);
22                         };
23                 };
24                 Simple simple = foo ();
25                 simple ();
26                 Hello (u);
27         }
28
29         public static void Main ()
30         {
31                 X x = new X ();
32                 x.Test (3);
33         }
34 }