Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-anon-47.cs
1 using System;
2
3 public delegate void Foo ();
4
5 public class World
6 {
7         public void Hello (long a)
8         { }
9
10         public void Test (int t)
11         {
12                 Hello (t);
13                 long j = 1 << t;
14                 for (int u = 0; u < j; u++) {
15                         long test = t;
16
17                         Foo foo = delegate {
18                                 long v = u * t * test;
19                                 Hello (v);
20                         };
21                 }
22         }
23 }
24
25 class X
26 {
27         public static void Main ()
28         {
29                 World world = new World ();
30                 world.Test (5);
31         }
32 }