2010-05-13 Rodrigo Kumpera <rkumpera@novell.com>
[mono-project.git] / mcs / tests / test-anon-40.cs
bloba5c4c5b0a0de4e9d9f795d95ad70cda617d5876f
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 Hello (j);
18 return delegate {
19 Hello (j);
22 Simple simple = foo ();
23 simple ();
26 static void Main ()
28 X x = new X ();
29 x.Test (3);