2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-anon-41.cs
blobd64280cf8ef632045f3fde226fc70fa1037a79f6
1 using System;
3 delegate void Simple ();
5 delegate Simple Foo ();
7 class X
9 public void Hello (long k)
10 { }
12 public void Test (int i)
14 long j = 1 << i;
15 Hello (j);
16 Foo foo = delegate {
17 long k = j;
18 Hello (j);
19 return delegate {
20 long l = k;
21 Hello (j);
24 Simple simple = foo ();
25 simple ();
28 static void Main ()
30 X x = new X ();
31 x.Test (3);