Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-115.cs
1 using System;
2
3 public delegate void Foo<V> (V v);
4
5 public delegate void Bar<W> (W w);
6
7
8 class Test<T>
9 {
10         public static void Hello<S> (T t, S s)
11         {
12                 Foo<long> foo = delegate (long r) {
13                         Console.WriteLine (r);
14                         Bar<T> bar = delegate (T x) {
15                                 Console.WriteLine (r);
16                                 Console.WriteLine (t);
17                                 Console.WriteLine (s);
18                                 Console.WriteLine (x);
19                         };
20                         bar (t);
21                 };
22                 foo (5);
23         }
24 }
25
26 class X
27 {
28         public static void Main ()
29         {
30                 Test<string>.Hello ("World", 3.1415F);
31         }
32 }