Update mcs/class/System.Core/System/TimeZoneInfo.cs
[mono.git] / mcs / tests / test-anon-25.cs
1 using System;
2
3 delegate int D (int arg);
4
5 class X {
6
7         static int Main ()
8         {
9                 D x = T (1);
10
11                 int v = x (10);
12                 Console.WriteLine ("Should be 11={0}", v);
13                 return v == 11 ? 0 : 1;
14         }
15
16         static D T (int a)
17         {
18                 D d = delegate (int arg) {
19                         return arg + a;
20                 };
21
22                 return d;
23         }
24 }